summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-03-15 09:50:18 -0500
committerBenjamin Peterson <benjamin@python.org>2011-03-15 09:50:18 -0500
commiteb46288a8d238aaa7c2218d5fbbc41e5620b48d5 (patch)
tree3a344f89720fdca0ed7c09be41ee87b536c98288 /Lib/test/test_fileinput.py
parentFix #11509. Significantly increase test coverage for fileinput. (diff)
downloadcpython-eb46288a8d238aaa7c2218d5fbbc41e5620b48d5.tar.gz
cpython-eb46288a8d238aaa7c2218d5fbbc41e5620b48d5.tar.bz2
cpython-eb46288a8d238aaa7c2218d5fbbc41e5620b48d5.zip
import style nits
Diffstat (limited to 'Lib/test/test_fileinput.py')
-rw-r--r--Lib/test/test_fileinput.py21
1 files changed, 13 insertions, 8 deletions
diff --git a/Lib/test/test_fileinput.py b/Lib/test/test_fileinput.py
index b32e0e0d71a..782b73ab5a0 100644
--- a/Lib/test/test_fileinput.py
+++ b/Lib/test/test_fileinput.py
@@ -2,18 +2,23 @@
Tests for fileinput module.
Nick Mathewson
'''
-
-import unittest
-from test.support import verbose, TESTFN, run_unittest
-from test.support import unlink as safe_unlink
-import os, sys, re
-from io import StringIO
-from fileinput import FileInput, hook_encoded
+import os
+import sys
+import re
import fileinput
import collections
-import gzip, bz2
+import gzip
+import bz2
import types
import codecs
+import unittest
+
+from io import StringIO
+from fileinput import FileInput, hook_encoded
+
+from test.support import verbose, TESTFN, run_unittest
+from test.support import unlink as safe_unlink
+
# The fileinput module has 2 interfaces: the FileInput class which does
# all the work, and a few functions (input, etc.) that use a global _state