mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +00:00
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:
parent
3bf1228273
commit
2c896cfffb
2 changed files with 8 additions and 8 deletions
|
|
@ -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()
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue