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
f8dc881a
Commit
f8dc881a
authored
Apr 24, 2011
by
willmcgugan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Release Candidate!
parent
95cc2ab6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
fs/__init__.py
+3
-4
fs/base.py
+1
-1
fs/contrib/tahoelafs/__init__.py
+2
-1
fs/path.py
+1
-1
No files found.
fs/__init__.py
View file @
f8dc881a
...
@@ -15,12 +15,11 @@ implementations of this interface such as:
...
@@ -15,12 +15,11 @@ implementations of this interface such as:
"""
"""
__version__
=
"0.4.0
b3
"
__version__
=
"0.4.0
rc
"
__author__
=
"Will McGugan (will@willmcgugan.com)"
__author__
=
"Will McGugan (will@willmcgugan.com)"
# 'base' imports * from 'path' and 'errors', so their
# No longer necessary - WM
# contents will be available here as well.
#from base import *
from
base
import
*
# provide these by default so people can use 'fs.path.basename' etc.
# provide these by default so people can use 'fs.path.basename' etc.
import
errors
import
errors
...
...
fs/base.py
View file @
f8dc881a
...
@@ -45,7 +45,7 @@ class DummyLock(object):
...
@@ -45,7 +45,7 @@ class DummyLock(object):
"""
"""
def
acquire
(
self
,
blocking
=
1
):
def
acquire
(
self
,
blocking
=
1
):
"""Acquiring a DummyLock always succeeds."""
"""Acquiring a DummyLock always succeeds."""
return
1
return
1
...
...
fs/contrib/tahoelafs/__init__.py
View file @
f8dc881a
...
@@ -65,7 +65,8 @@ from logging import DEBUG, INFO, ERROR, CRITICAL
...
@@ -65,7 +65,8 @@ from logging import DEBUG, INFO, ERROR, CRITICAL
import
fs
import
fs
import
fs.errors
as
errors
import
fs.errors
as
errors
from
fs.path
import
abspath
,
relpath
,
normpath
,
dirname
,
pathjoin
from
fs.path
import
abspath
,
relpath
,
normpath
,
dirname
,
pathjoin
from
fs
import
FS
,
NullFile
,
_thread_synchronize_default
,
SEEK_END
from
fs.base
import
FS
,
NullFile
from
fs
import
_thread_synchronize_default
,
SEEK_END
from
fs.remote
import
CacheFSMixin
,
RemoteFileBuffer
from
fs.remote
import
CacheFSMixin
,
RemoteFileBuffer
from
fs.base
import
fnmatch
,
NoDefaultMeta
from
fs.base
import
fnmatch
,
NoDefaultMeta
...
...
fs/path.py
View file @
f8dc881a
...
@@ -48,7 +48,7 @@ def normpath(path):
...
@@ -48,7 +48,7 @@ def normpath(path):
components
=
[]
components
=
[]
append
=
components
.
append
append
=
components
.
append
special
=
(
'
'
,
'.'
,
'..
'
)
.
__contains__
special
=
(
'
..'
,
'.'
,
'
'
)
.
__contains__
try
:
try
:
for
component
in
path
.
split
(
'/'
):
for
component
in
path
.
split
(
'/'
):
if
special
(
component
):
if
special
(
component
):
...
...
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