diff options
author | Ethan Estrada <ethan.estrada@gmail.com> | 2016-03-08 22:00:52 -0700 |
---|---|---|
committer | Ethan Estrada <ethan.estrada@gmail.com> | 2016-03-14 22:32:34 -0600 |
commit | 8529ed8ac47d7670dbe37e47f91eae7dbcf63372 (patch) | |
tree | f0ca20b97634770255c9a5c657a00b8d933106c6 | |
parent | ad8964c72190c1c6c579b988ee9fda91c561472b (diff) | |
download | fusepy-8529ed8ac47d7670dbe37e47f91eae7dbcf63372.tar.gz |
Add Python3 compatibility boilerplate
-rwxr-xr-x | examples/context.py | 1 | ||||
-rwxr-xr-x | examples/loopback.py | 3 | ||||
-rwxr-xr-x | examples/memory.py | 1 | ||||
-rwxr-xr-x | examples/memoryll.py | 1 | ||||
-rwxr-xr-x | examples/sftp.py | 1 | ||||
-rw-r--r-- | fuse.py | 2 | ||||
-rw-r--r-- | fusell.py | 3 |
7 files changed, 7 insertions, 5 deletions
diff --git a/examples/context.py b/examples/context.py index 40fa168..acfc746 100755 --- a/examples/context.py +++ b/examples/context.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import print_function, absolute_import, division from errno import ENOENT from stat import S_IFDIR, S_IFREG diff --git a/examples/loopback.py b/examples/loopback.py index 1b5b6ed..4e1a500 100755 --- a/examples/loopback.py +++ b/examples/loopback.py @@ -1,6 +1,5 @@ #!/usr/bin/env python - -from __future__ import with_statement +from __future__ import print_function, absolute_import, division from errno import EACCES from os.path import realpath diff --git a/examples/memory.py b/examples/memory.py index b2b2a5d..7e19c0a 100755 --- a/examples/memory.py +++ b/examples/memory.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import print_function, absolute_import, division import logging diff --git a/examples/memoryll.py b/examples/memoryll.py index 7482f86..226a5d6 100755 --- a/examples/memoryll.py +++ b/examples/memoryll.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import print_function, absolute_import, division from collections import defaultdict from errno import ENOENT, EROFS diff --git a/examples/sftp.py b/examples/sftp.py index 6f512bd..95aa096 100755 --- a/examples/sftp.py +++ b/examples/sftp.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from __future__ import print_function, absolute_import, division from sys import argv, exit from time import time @@ -13,7 +13,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -from __future__ import division +from __future__ import print_function, absolute_import, division from ctypes import * from ctypes.util import find_library @@ -11,8 +11,7 @@ # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - -from __future__ import division +from __future__ import print_function, absolute_import, division from ctypes import * from ctypes.util import find_library |