From 2c896cfffba5afae5a52fbdf9749c25a85b729f4 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Sun, 24 Feb 2013 18:37:10 -0500 Subject: [PATCH] Make the organization more logical No need to put that in util when it's only used in one place. --- flake8/engine.py | 8 ++++++++ flake8/util.py | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) 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() - )