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
1ae4c3d0
Commit
1ae4c3d0
authored
Aug 12, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid warnings about <<. external_attr is now an unsigned long.
parent
738eda74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/zipfile.py
Lib/zipfile.py
+2
-2
No files found.
Lib/zipfile.py
View file @
1ae4c3d0
...
...
@@ -25,7 +25,7 @@ ZIP_DEFLATED = 8
# Here are some struct module formats for reading headers
structEndArchive
=
"<4s4H2lH"
# 9 items, end of archive, 22 bytes
stringEndArchive
=
"PK
\
005
\
006
"
# magic number for end of archive record
structCentralDir
=
"<4s4B4H3l5H
2
l"
# 19 items, central directory, 46 bytes
structCentralDir
=
"<4s4B4H3l5H
L
l"
# 19 items, central directory, 46 bytes
stringCentralDir
=
"PK
\
001
\
002
"
# magic number for central directory
structFileHeader
=
"<4s2B4H3l2H"
# 12 items, file header record, 30 bytes
stringFileHeader
=
"PK
\
003
\
004
"
# magic number for file header
...
...
@@ -373,7 +373,7 @@ class ZipFile:
zinfo
=
ZipInfo
(
filename
,
date_time
)
else
:
zinfo
=
ZipInfo
(
arcname
,
date_time
)
zinfo
.
external_attr
=
st
[
0
]
<<
16
# Unix attributes
zinfo
.
external_attr
=
st
[
0
]
<<
16
L
# Unix attributes
if
compress_type
is
None
:
zinfo
.
compress_type
=
self
.
compression
else
:
...
...
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