Merge "Cleanup tools/hacking using flake8"

This commit is contained in:
Jenkins
2012-05-31 01:50:46 +00:00
committed by Gerrit Code Review

View File

@@ -27,7 +27,6 @@ import os
import re
import sys
import tokenize
import traceback
import warnings
import pep8
@@ -62,7 +61,6 @@ def import_normalize(line):
split_line[1] != "__future__" and
(len(split_line) == 4 or
(len(split_line) == 6 and split_line[4] == "as"))):
mod = split_line[3]
return "import %s.%s" % (split_line[1], split_line[3])
else:
return line