Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pyfs
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pyfs
Commits
1eaa36f1
Commit
1eaa36f1
authored
Mar 13, 2014
by
willmcgugan@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch to zipfs
parent
63ae726c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
fs/zipfs.py
+2
-1
setup.py
+1
-1
No files found.
fs/zipfs.py
View file @
1eaa36f1
...
@@ -205,7 +205,8 @@ class ZipFS(FS):
...
@@ -205,7 +205,8 @@ class ZipFS(FS):
msg
=
"1 Zip file must be opened for reading ('r') or appending ('a')"
)
msg
=
"1 Zip file must be opened for reading ('r') or appending ('a')"
)
try
:
try
:
if
hasattr
(
self
.
zf
,
'open'
)
and
self
.
_zip_file_string
:
if
hasattr
(
self
.
zf
,
'open'
)
and
self
.
_zip_file_string
:
return
self
.
zf
.
open
(
self
.
_encode_path
(
path
),
"r"
)
#return self.zf.open(self._encode_path(path), "r")
return
self
.
zf
.
open
(
self
.
_encode_path
(
path
),
'rU'
if
'U'
in
mode
else
'r'
)
else
:
else
:
contents
=
self
.
zf
.
read
(
self
.
_encode_path
(
path
))
contents
=
self
.
zf
.
read
(
self
.
_encode_path
(
path
))
except
KeyError
:
except
KeyError
:
...
...
setup.py
View file @
1eaa36f1
...
@@ -52,7 +52,7 @@ setup(install_requires=['distribute', 'six'],
...
@@ -52,7 +52,7 @@ setup(install_requires=['distribute', 'six'],
author_email
=
"will@willmcgugan.com"
,
author_email
=
"will@willmcgugan.com"
,
#url="http://code.google.com/p/pyfilesystem/",
#url="http://code.google.com/p/pyfilesystem/",
#download_url="http://code.google.com/p/pyfilesystem/downloads/list",
#download_url="http://code.google.com/p/pyfilesystem/downloads/list",
url
=
"http://pypi.python.org/pypi/fs/"
url
=
"http://pypi.python.org/pypi/fs/"
,
platforms
=
[
'any'
],
platforms
=
[
'any'
],
packages
=
[
'fs'
,
packages
=
[
'fs'
,
'fs.expose'
,
'fs.expose'
,
...
...
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