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
37de910b
Commit
37de910b
authored
Apr 19, 2015
by
Berker Peksag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark TarInfo.frombuf() and TarInfo.fromtarfile() as classmethods.
parent
e4dde50c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/library/tarfile.rst
Doc/library/tarfile.rst
+3
-3
No files found.
Doc/library/tarfile.rst
View file @
37de910b
...
...
@@ -465,14 +465,14 @@ It does *not* contain the file's data itself.
Create a :class:`TarInfo` object.
.. method:: TarInfo.frombuf(buf, encoding, errors)
..
class
method:: TarInfo.frombuf(buf, encoding, errors)
Create and return a :class:`TarInfo` object from string buffer *buf*.
Raises :exc:`HeaderError` if the buffer is invalid.
.
Raises :exc:`HeaderError` if the buffer is invalid.
.. method:: TarInfo.fromtarfile(tarfile)
..
class
method:: TarInfo.fromtarfile(tarfile)
Read the next member from the :class:`TarFile` object *tarfile* and return it as
a :class:`TarInfo` object.
...
...
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