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
62110c76
Commit
62110c76
authored
May 17, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
314a16b0
468ff4c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
Lib/tarfile.py
Lib/tarfile.py
+2
-2
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/tarfile.py
View file @
62110c76
...
...
@@ -245,8 +245,8 @@ def calc_chksums(buf):
the high bit set. So we calculate two checksums, unsigned and
signed.
"""
unsigned_chksum
=
256
+
sum
(
struct
.
unpack
(
"148B"
,
buf
[:
148
])
+
struct
.
unpack
(
"356B"
,
buf
[
156
:
512
]
))
signed_chksum
=
256
+
sum
(
struct
.
unpack
(
"148b"
,
buf
[:
148
])
+
struct
.
unpack
(
"356b"
,
buf
[
156
:
512
]
))
unsigned_chksum
=
256
+
sum
(
struct
.
unpack
_from
(
"148B8x356B"
,
buf
))
signed_chksum
=
256
+
sum
(
struct
.
unpack
_from
(
"148b8x356b"
,
buf
))
return
unsigned_chksum
,
signed_chksum
def
copyfileobj
(
src
,
dst
,
length
=
None
):
...
...
Misc/ACKS
View file @
62110c76
...
...
@@ -776,6 +776,7 @@ Gaël Pasgrimaud
Joe Peterson
Randy Pausch
Samuele Pedroni
Justin Peel
Marcel van der Peijl
Berker Peksag
Steven Pemberton
...
...
Misc/NEWS
View file @
62110c76
...
...
@@ -38,6 +38,9 @@ Core and Builtins
Library
-------
- Issue #13031: Small speed-up for tarfile when unzipping tarfiles.
Patch by Justin Peel.
- Issue #14780: urllib.request.urlopen() now has a ``cadefault`` argument
to use the default certificate store. Initial patch by James Oakley.
...
...
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