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
40a7464e
Commit
40a7464e
authored
Mar 10, 2011
by
rfkelly0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some debugging stuff
parent
31013843
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
fs/contrib/davfs/__init__.py
+0
-5
fs/contrib/tahoelafs/test_tahoelafs.py
+0
-1
fs/wrapfs/lazyfs.py
+3
-3
No files found.
fs/contrib/davfs/__init__.py
View file @
40a7464e
...
...
@@ -41,8 +41,6 @@ from fs.contrib.davfs.util import *
from
fs.contrib.davfs
import
xmlobj
from
fs.contrib.davfs.xmlobj
import
*
logger
=
fs
.
getLogger
(
"fs.contrib.davfs"
)
import
errno
_RETRYABLE_ERRORS
=
[
errno
.
EADDRINUSE
]
try
:
...
...
@@ -236,7 +234,6 @@ class DAVFS(FS):
except
KeyError
:
msg
=
"unsupported protocol: '
%
s'"
%
(
url
.
scheme
,)
raise
RemoteConnectionError
(
msg
=
msg
)
logger
.
debug
(
"DAVFS >REQ
%
s
%
s/
%
s"
,
method
,
url
.
hostname
,
url
.
path
)
con
=
ConClass
(
url
.
hostname
,
url
.
port
,
timeout
=
self
.
timeout
)
self
.
_add_connection
(
con
)
try
:
...
...
@@ -257,11 +254,9 @@ class DAVFS(FS):
resp
=
con
.
getresponse
()
self
.
_cookiejar
.
extract_cookies
(
FakeResp
(
resp
),
FakeReq
(
con
,
url
.
scheme
,
url
.
path
))
except
Exception
,
e
:
logger
.
exception
(
"DAVFS <ERR
%
s
%
s/
%
s"
,
method
,
url
.
hostname
,
url
.
path
)
self
.
_del_connection
(
con
)
raise
else
:
logger
.
debug
(
"DAVFS <RESP
%
s
%
s
%
s/
%
s"
,
resp
.
status
,
method
,
url
.
hostname
,
url
.
path
)
old_close
=
resp
.
close
def
new_close
():
old_close
()
...
...
fs/contrib/tahoelafs/test_tahoelafs.py
View file @
40a7464e
...
...
@@ -28,7 +28,6 @@ class TestTahoeLAFS(unittest.TestCase,FSTestCases):#,ThreadingTestCases):
def
setUp
(
self
):
self
.
dircap
=
TahoeLAFS
.
createdircap
(
WEBAPI
)
print
TahoeLAFS
.
__mro__
self
.
fs
=
TahoeLAFS
(
self
.
dircap
,
cache_timeout
=
0
,
webapi
=
WEBAPI
)
def
tearDown
(
self
):
...
...
fs/wrapfs/lazyfs.py
View file @
40a7464e
...
...
@@ -52,18 +52,18 @@ class LazyFS(WrapFS):
def
_get_wrapped_fs
(
self
):
"""Obtain the wrapped FS instance, creating it if necessary."""
try
:
return
self
.
__dict__
[
"wrapped_fs"
]
fs
=
self
.
__dict__
[
"wrapped_fs"
]
except
KeyError
:
self
.
_lazy_creation_lock
.
acquire
()
try
:
try
:
return
self
.
__dict__
[
"wrapped_fs"
]
fs
=
self
.
__dict__
[
"wrapped_fs"
]
except
KeyError
:
fs
=
self
.
_fsclass
(
*
self
.
_fsargs
,
**
self
.
_fskwds
)
self
.
__dict__
[
"wrapped_fs"
]
=
fs
return
fs
finally
:
self
.
_lazy_creation_lock
.
release
()
return
fs
def
_set_wrapped_fs
(
self
,
fs
):
if
isinstance
(
fs
,
FS
):
...
...
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