Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
8c66a6d2
Commit
8c66a6d2
authored
Aug 04, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the deprecated posix attribute.
parent
655c641a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
23 deletions
+0
-23
Doc/library/tarfile.rst
Doc/library/tarfile.rst
+0
-12
Lib/tarfile.py
Lib/tarfile.py
+0
-11
No files found.
Doc/library/tarfile.rst
View file @
8c66a6d2
...
...
@@ -393,18 +393,6 @@ object, see :ref:`tarinfo-objects` for details.
appended to the archive.
.. attribute:: TarFile.posix
Setting this to :const:`True` is equivalent to setting the :attr:`format`
attribute to :const:`USTAR_FORMAT`, :const:`False` is equivalent to
:const:`GNU_FORMAT`.
*posix* defaults to :const:`False`.
.. deprecated:: 2.6
Use the :attr:`format` attribute instead.
.. attribute:: TarFile.pax_headers
A dictionary containing key-value pairs of pax global headers.
...
...
Lib/tarfile.py
View file @
8c66a6d2
...
...
@@ -1577,17 +1577,6 @@ class TarFile(object):
self.fileobj.write(buf)
self.offset += len(buf)
def _getposix(self):
return self.format == USTAR_FORMAT
def _setposix(self, value):
import warnings
warnings.warn("
use
the
format
attribute
instead
", DeprecationWarning)
if value:
self.format = USTAR_FORMAT
else:
self.format = GNU_FORMAT
posix = property(_getposix, _setposix)
#--------------------------------------------------------------------------
# Below are the classmethods which act as alternate constructors to the
# TarFile class. The open() method is the only one that is needed for
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment