summaryrefslogtreecommitdiff
path: root/fs/__init__.py
diff options
context:
space:
mode:
authorwillmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-31 21:30:34 +0000
committerwillmcgugan@gmail.com <willmcgugan@gmail.com@67cdc799-7952-0410-af00-57a81ceafa0f>2013-03-31 21:30:34 +0000
commit3ea4efe11b1a7f31c355103608950379d52fdec5 (patch)
tree5547f10f29e28894ae70ff5b97e858456f94103a /fs/__init__.py
parentc6391b6f5dcf2a30d4657b5808f9f668fbc02de3 (diff)
downloadpyfilesystem-git-3ea4efe11b1a7f31c355103608950379d52fdec5.tar.gz
Change of api (fs.open, fs.setcontent, fs.getcontents) to support io module in Py2.6+ and Py3
Diffstat (limited to 'fs/__init__.py')
-rw-r--r--fs/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/__init__.py b/fs/__init__.py
index 2d5f96b..91b85a2 100644
--- a/fs/__init__.py
+++ b/fs/__init__.py
@@ -19,19 +19,19 @@ __version__ = "0.4.1"
__author__ = "Will McGugan (will@willmcgugan.com)"
# provide these by default so people can use 'fs.path.basename' etc.
-import errors
-import path
+from fs import errors
+from fs import path
_thread_synchronize_default = True
def set_thread_synchronize_default(sync):
"""Sets the default thread synchronisation flag.
-
+
FS objects are made thread-safe through the use of a per-FS threading Lock
object. Since this can introduce an small overhead it can be disabled with
this function if the code is single-threaded.
-
+
:param sync: Set whether to use thread synchronisation for new FS objects
-
+
"""
global _thread_synchronization_default
_thread_synchronization_default = sync