Commits

Ezio Melotti committed 375ed8b

Reorder imports, remove unnecessary/duplicated code.

Comments (0)

Files changed (1)

 """
 
 from __future__ import print_function
+
+import sys
+import json
+
+from os import makedirs
+from os.path import abspath, exists, dirname
 from datetime import datetime
-from sys import version_info
 from collections import defaultdict, OrderedDict
 
-START = datetime.now()
-
-PY3K = version_info >= (3, 0)
+PY3K = sys.version_info >= (3, 0)
 if PY3K:
   import urllib.request as urllib
   import xmlrpc.client as xmlrpclib
 
 import stdlib
 
+START = datetime.now()
+
 # -- 0. Bootstrap locally --
 
-from os import makedirs
-from os.path import abspath, exists, dirname
-import sys
-import json
-
-PY3K = sys.version_info >= (3, 0)
-if PY3K:
-  import urllib.request as urllib
-else:
-  import urllib
-
 ROOT = abspath(dirname(__file__))
 CACHE = ROOT + '/.locally/files/'
 LIB = ROOT + '/.locally/lib/'
     print()
 
 
-print('')
+print()
 print('Open issues with patch keyword: %s' % len(open_issues))
 print('Issues with confirmed patches: %s' % len(issue_patches))
-print('')
+print()
 print('Files attached: %s' % files_attached)
 print('Patches: %s' % files_patches)
-print('')
+print()
 for module, issues in module_issues.items():
   print('  %s: %d' % (module, len(issues)))
 print('Files affected by patches: %s' % len(python_files))
 with open('files.json', 'w') as f:
     json.dump(data, f)
 
-print('')
+print()
 print('Finished in ' + str(datetime.now() - START)[:-4])
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.