mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import re
|
import re
|
||||||
|
import platform
|
||||||
|
|
||||||
import pep8
|
import pep8
|
||||||
|
|
||||||
|
|
@ -81,3 +82,10 @@ def get_style_guide(**kwargs):
|
||||||
for options_hook in options_hooks:
|
for options_hook in options_hooks:
|
||||||
options_hook(options)
|
options_hook(options)
|
||||||
return styleguide
|
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 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import platform
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import ast
|
import ast
|
||||||
|
|
@ -36,10 +35,3 @@ class OrderedSet(list):
|
||||||
def add(self, value):
|
def add(self, value):
|
||||||
if value not in self:
|
if value not in self:
|
||||||
self.append(value)
|
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