From 6bcc9d032a6671dd5687fb8a7dc24cc6c73410b3 Mon Sep 17 00:00:00 2001 From: Adrien JUND Date: Thu, 20 Oct 2016 17:34:41 +0200 Subject: fix import --- fs/expose/dokan/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/expose/dokan/__init__.py b/fs/expose/dokan/__init__.py index 52052fb..13de6a0 100644 --- a/fs/expose/dokan/__init__.py +++ b/fs/expose/dokan/__init__.py @@ -33,7 +33,7 @@ can be controlled through the returned subprocess.Popen object. To avoid spawning a new process, set the 'foreground' option:: >>> # This will block until the filesystem is unmounted - >>> dokan.mount(fs, "Q", foreground=True) + >>> dokan.mount(fs, "Q:\\", foreground=True) Any additional options for the Dokan process can be passed as keyword arguments to the 'mount' function. @@ -77,6 +77,7 @@ except ImportError: import datetime import ctypes from collections import deque +from six.moves import range from fs.base import threading from fs.errors import * @@ -100,9 +101,6 @@ else: import logging logger = logging.getLogger("fs.expose.dokan") -if six.PY3: - xrange = range - # Options controlling the behavior of the Dokan filesystem # Ouput debug message -- cgit v1.2.1