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
747c7b9b
Commit
747c7b9b
authored
Feb 26, 2014
by
willmcgugan@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py2.6 fixes
parent
41efb9b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
fs/base.py
+1
-1
fs/errors.py
+1
-1
tox.ini
+1
-1
No files found.
fs/base.py
View file @
747c7b9b
...
@@ -754,7 +754,7 @@ class FS(object):
...
@@ -754,7 +754,7 @@ class FS(object):
"""
"""
info
=
self
.
getinfo
(
path
)
info
=
self
.
getinfo
(
path
)
return
{
k
:
info
[
k
]
for
k
in
keys
if
k
in
info
}
return
dict
((
k
,
info
[
k
])
for
k
in
keys
if
k
in
info
)
def
desc
(
self
,
path
):
def
desc
(
self
,
path
):
"""Returns short descriptive text regarding a path. Intended mainly as
"""Returns short descriptive text regarding a path. Intended mainly as
...
...
fs/errors.py
View file @
747c7b9b
...
@@ -67,7 +67,7 @@ class FSError(Exception):
...
@@ -67,7 +67,7 @@ class FSError(Exception):
keys
=
{}
keys
=
{}
for
k
,
v
in
self
.
__dict__
.
iteritems
():
for
k
,
v
in
self
.
__dict__
.
iteritems
():
if
isinstance
(
v
,
six
.
binary_type
):
if
isinstance
(
v
,
six
.
binary_type
):
v
=
v
.
decode
(
sys
.
getfilesystemencoding
(),
errors
=
'replace'
)
v
=
v
.
decode
(
sys
.
getfilesystemencoding
(),
'replace'
)
keys
[
k
]
=
v
keys
[
k
]
=
v
return
unicode
(
self
.
msg
,
encoding
=
sys
.
getfilesystemencoding
(),
errors
=
'replace'
)
%
keys
return
unicode
(
self
.
msg
,
encoding
=
sys
.
getfilesystemencoding
(),
errors
=
'replace'
)
%
keys
...
...
tox.ini
View file @
747c7b9b
[tox]
[tox]
envlist
=
py26,py27,py31,py32,pypy
envlist
=
py26,py27,py31,py32,py
33,py
py
sitepackages
=
False
sitepackages
=
False
[testenv]
[testenv]
...
...
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