Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
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
Boris Kocherov
cloudooo
Commits
50329148
Commit
50329148
authored
Feb 14, 2017
by
Boris Kocherov
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly close open files during unzip
parent
16cc6ead
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cloudooo/util.py
cloudooo/util.py
+2
-3
No files found.
cloudooo/util.py
View file @
50329148
...
...
@@ -132,9 +132,8 @@ def zipTree(destination, *tree_path_list):
return
destination
def
unzip
(
source
,
destination
):
zipfile
=
ZipFile
(
source
)
with
ZipFile
(
source
)
as
zipfile
:
zipfile
.
extractall
(
destination
)
zipfile
.
close
()
def
parseContentType
(
content_type
):
"""Parses `text/plain;charset="utf-8"` to a mimetools.Message object.
...
...
Boris Kocherov
@bk
mentioned in commit
c285d25f
·
Feb 06, 2018
mentioned in commit
c285d25f
mentioned in commit c285d25f4a46bfc40bc87ebafc95281497acfb70
Toggle commit list
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