Make the organization more logical

No need to put that in util when it's only used in one place.
This commit is contained in:
Ian Cordasco 2013-02-24 18:37:10 -05:00
parent 3bf1228273
commit 2c896cfffb
2 changed files with 8 additions and 8 deletions

View file

@ -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()
)

View file

@ -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()
)