Commits

Ian Cordasco committed 6f75370

Make the organization more logical

No need to put that in util when it's only used in one place.

  • Participants
  • Parent commits 1cdd496
  • Branches develop

Comments (0)

Files changed (2)

File flake8/engine.py

 # -*- coding: utf-8 -*-
 import re
+import platform
 
 import pep8
 
     for options_hook in options_hooks:
         options_hook(options)
     return styleguide
+
+
+def get_python_version():
+    return '%s %s on %s' % (
+        platform.python_implementation(), platform.python_version(),
+        platform.system()
+    )

File flake8/util.py

 # -*- coding: utf-8 -*-
-import platform
 
 try:
     import ast
     def add(self, value):
         if value not in self:
             self.append(value)
-
-
-def get_python_version():
-    return '%s %s on %s' % (
-        platform.python_implementation(), platform.python_version(),
-        platform.system()
-    )