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
f31d3137
Commit
f31d3137
authored
Aug 13, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redefinition of writelines() method
Remove unused variable and import
parent
77f9caf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
Lib/gzip.py
Lib/gzip.py
+0
-5
No files found.
Lib/gzip.py
View file @
f31d3137
...
...
@@ -141,9 +141,6 @@ class GzipFile:
self
.
fileobj
.
write
(
self
.
compress
.
compress
(
data
)
)
self
.
offset
+=
len
(
data
)
def
writelines
(
self
,
lines
):
self
.
write
(
" "
.
join
(
lines
))
def
read
(
self
,
size
=-
1
):
if
self
.
extrasize
<=
0
and
self
.
fileobj
is
None
:
return
''
...
...
@@ -305,7 +302,6 @@ class GzipFile:
def
readline
(
self
,
size
=-
1
):
if
size
<
0
:
size
=
sys
.
maxint
bufs
=
[]
orig_size
=
size
readsize
=
min
(
100
,
size
)
# Read from the file in small chunks
while
1
:
if
size
==
0
:
...
...
@@ -352,7 +348,6 @@ def _test():
# Act like gzip; with -d, act like gunzip.
# The input file is not deleted, however, nor are any other gzip
# options or features supported.
import
sys
args
=
sys
.
argv
[
1
:]
decompress
=
args
and
args
[
0
]
==
"-d"
if
decompress
:
...
...
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