diff --git a/flake8/engine.py b/flake8/engine.py index 3980fab..4680574 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- import re +import platform import pep8 @@ -81,3 +82,10 @@ def get_style_guide(**kwargs): 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() + ) diff --git a/flake8/util.py b/flake8/util.py index 8351c70..050fe4d 100644 --- a/flake8/util.py +++ b/flake8/util.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import platform try: import ast @@ -36,10 +35,3 @@ class OrderedSet(list): 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() - )