]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19872: remove unused imports in pathlib. Patch by Vajrasky Kok.
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 3 Dec 2013 08:41:35 +0000 (09:41 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 3 Dec 2013 08:41:35 +0000 (09:41 +0100)
Lib/pathlib.py

index 49859eb0eb5649ea8c81498ca122d1330308e4ef..73bf9df5b659e1cf5d556775f1f71230fe013322 100644 (file)
@@ -6,19 +6,12 @@ import os
 import posixpath
 import re
 import sys
-import weakref
-try:
-    import threading
-except ImportError:
-    import dummy_threading as threading
-
-from collections import Sequence, defaultdict
+from collections import Sequence
 from contextlib import contextmanager
 from errno import EINVAL, ENOENT
-from itertools import chain, count
 from operator import attrgetter
 from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO
-from urllib.parse import quote as urlquote, quote_from_bytes as urlquote_from_bytes
+from urllib.parse import quote_from_bytes as urlquote_from_bytes
 
 
 supports_symlinks = True