mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 07:14:18 +00:00
Delete unnecessary function
This commit is contained in:
parent
0d006a3521
commit
186f41edcb
1 changed files with 0 additions and 11 deletions
|
|
@ -38,12 +38,6 @@ class OrderedSet(list):
|
||||||
self.append(value)
|
self.append(value)
|
||||||
|
|
||||||
|
|
||||||
def is_flag(val):
|
|
||||||
"""Guess if the value could be an on/off toggle"""
|
|
||||||
val = str(val)
|
|
||||||
return val.upper() in ('1', '0', 'F', 'T', 'TRUE', 'FALSE', 'ON', 'OFF')
|
|
||||||
|
|
||||||
|
|
||||||
def is_windows():
|
def is_windows():
|
||||||
"""Determine if the system is Windows."""
|
"""Determine if the system is Windows."""
|
||||||
return os.name == 'nt'
|
return os.name == 'nt'
|
||||||
|
|
@ -63,11 +57,6 @@ def force_disable_jobs(styleguide):
|
||||||
return is_windows() or is_using_stdin(styleguide.paths)
|
return is_windows() or is_using_stdin(styleguide.paths)
|
||||||
|
|
||||||
|
|
||||||
def flag_on(val):
|
|
||||||
"""Return true if flag is on"""
|
|
||||||
return str(val).upper() in ('1', 'T', 'TRUE', 'ON')
|
|
||||||
|
|
||||||
|
|
||||||
def option_normalizer(value):
|
def option_normalizer(value):
|
||||||
if str(value).upper() in ('1', 'T', 'TRUE', 'ON'):
|
if str(value).upper() in ('1', 'T', 'TRUE', 'ON'):
|
||||||
value = True
|
value = True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue