mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
The implementation isn't all that important.
But when we can display it, we may as well, otherwise there's no point in displaying it.
This commit is contained in:
parent
06db4e10e5
commit
d6c73b454b
1 changed files with 4 additions and 3 deletions
|
|
@ -85,8 +85,9 @@ def get_style_guide(**kwargs):
|
|||
|
||||
|
||||
def get_python_version():
|
||||
# The implementation isn't all that important.
|
||||
try:
|
||||
impl = platform.python_implementation()
|
||||
impl = platform.python_implementation() + " "
|
||||
except AttributeError: # Python 2.5
|
||||
impl = 'Python'
|
||||
return '%s %s on %s' % (impl, platform.python_version(), platform.system())
|
||||
impl = ''
|
||||
return '%s%s on %s' % (impl, platform.python_version(), platform.system())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue