diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-20 10:12:28 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-20 10:12:28 +0300 |
commit | 10feba3fadebd2140b1db68f7cfa9c3fa83ad883 (patch) | |
tree | c79da0abd98042ec814f02ee84c6e7c98b6fd964 /Lib/queue.py | |
parent | 446ca43cfdeb0c219464503a317644d10969e96e (diff) | |
parent | db5cc8c08191353e886cf2c6673e3b2323db1974 (diff) | |
download | cpython-10feba3fadebd2140b1db68f7cfa9c3fa83ad883.tar.gz |
Issue #23908: os functions now reject paths with embedded null character
on Windows instead of silently truncate them.
Removed no longer used _PyUnicode_HasNULChars().
Diffstat (limited to 'Lib/queue.py')
-rw-r--r-- | Lib/queue.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/queue.py b/Lib/queue.py index 3cee36b896..572425e844 100644 --- a/Lib/queue.py +++ b/Lib/queue.py @@ -6,10 +6,7 @@ except ImportError: import dummy_threading as threading from collections import deque from heapq import heappush, heappop -try: - from time import monotonic as time -except ImportError: - from time import time +from time import monotonic as time __all__ = ['Empty', 'Full', 'Queue', 'PriorityQueue', 'LifoQueue'] |