Skip to content

Commit f85aea9

Browse files
encukouvstinner
andauthored
Apply suggestions from code review
Co-authored-by: Victor Stinner <[email protected]>
1 parent fbc0642 commit f85aea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/tarfile.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ A ``TarInfo`` object has the following public data attributes:
740740
Name of the target file name, which is only present in :class:`TarInfo` objects
741741
of type :const:`LNKTYPE` and :const:`SYMTYPE`.
742742

743-
For symbolic links (``SYMTYPE``), the linkname is relative to the directory
743+
For symbolic links (``SYMTYPE``), the *linkname* is relative to the directory
744744
that contains the link.
745745
For hard links (``LNKTYPE``), the *linkname* is relative to the root of
746746
the archive.

Lib/test/test_tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3661,7 +3661,7 @@ def test_absolute_symlink(self):
36613661

36623662
def test_absolute_hardlink(self):
36633663
# Test hardlink to an absolute path
3664-
# Inspired by 'dirsymlink' in jwilk/traversal-archives
3664+
# Inspired by 'dirsymlink' in https://github.com/jwilk/traversal-archives
36653665
with ArchiveMaker() as arc:
36663666
arc.add('parent', hardlink_to=self.outerdir / 'foo')
36673667

0 commit comments

Comments
 (0)