Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
cloudooo
Commits
50329148
Commit
50329148
authored
Feb 14, 2017
by
Boris Kocherov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly close open files during unzip
parent
16cc6ead
Changes
1
Hide 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
)
zipfile
.
extractall
(
destination
)
zipfile
.
close
()
with
ZipFile
(
source
)
as
zipfile
:
zipfile
.
extractall
(
destination
)
def
parseContentType
(
content_type
):
"""Parses `text/plain;charset="utf-8"` to a mimetools.Message object.
...
...
Boris Kocherov
@bk
mentioned in commit
3528fff1
·
Feb 26, 2018
mentioned in commit
3528fff1
mentioned in commit 3528fff105c1850640f1a8973d7fd5ba445c602d
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