[Python-checkins] cpython (3.4): Remove unused import and remove doctest-only import into doctests.

jason.coombs python-checkins at python.org
Sun Jun 28 17:17:50 CEST 2015


https://hg.python.org/cpython/rev/8bf1c158332f
changeset: 96706:8bf1c158332f
branch: 3.4
parent: 96615:6d574b426eac
user: Jason R. Coombs <jaraco at jaraco.com>
date: Sat Jun 20 19:13:50 2015 -0400
summary:
 Remove unused import and remove doctest-only import into doctests.
files:
 Lib/test/test_tokenize.py | 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -5,6 +5,8 @@
 code, print out a table with tokens. The ENDMARKER is omitted for
 brevity.
 
+ >>> import glob
+
 >>> dump_tokens("1 + 1")
 ENCODING 'utf-8' (0, 0) (0, 0)
 NUMBER '1' (1, 0) (1, 1)
@@ -647,7 +649,7 @@
 open as tokenize_open, Untokenizer)
 from io import BytesIO
 from unittest import TestCase, mock
-import os, sys, glob
+import os
 import token
 
 def dump_tokens(s):
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /