Skip to content

Commit ca99207

Browse files
committed
flake8 fixes
move import to top, indentation, remove trailing whitespace ...
1 parent 6706eb2 commit ca99207

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

roundup/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self):
116116
'display_protected':
117117
_("Have 'display designator' show protected fields: creator. NYI"),
118118

119-
'indexer_backend':
119+
'indexer_backend':
120120
_("Set indexer to use when running 'reindex' NYI"),
121121

122122
'_reopen_tracker':

roundup/cgi/cgitb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def pt_html(context=5, i18n=None):
6767
from roundup.cgi.PageTemplates.Expressions import TraversalError
6868
t = inspect.trace(context)
6969
t.reverse()
70-
for frame, file, lnum, func, lines, index in t:
70+
for frame, _file, _lnum, _func, _lines, _index in t:
7171
args, varargs, varkw, locals = inspect.getargvalues(frame)
7272
if '__traceback_info__' in locals:
7373
ti = locals['__traceback_info__']

roundup/i18n.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
import gettext as gettext_module
3939
import os
40+
import sys
4041

4142
from roundup import msgfmt
4243
from roundup.anypy.strings import is_us
@@ -58,7 +59,6 @@
5859
LOCALE_DIRS.append(_mo_path)
5960
del _mo_path
6061

61-
import sys
6262
# __file__ should be something like:
6363
# /usr/local/lib/python3.10/site-packages/roundup/i18n.py
6464
# os.prefix should be /usr, /usr/local or root of virtualenv
@@ -82,7 +82,7 @@
8282
if os.path.isdir(_ldir):
8383
LOCALE_DIRS.append(_ldir)
8484
except AttributeError:
85-
pass # no base_prefix on 2.7
85+
pass # no base_prefix on 2.7
8686
del _ldir
8787

8888
# Roundup text domain

roundup/mailgw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def parse_subject(self):
637637

638638
# Check if the subject includes a prefix
639639
self.has_prefix = re.search(r'^%s\s*(\w+)\s*%s' % (delim_open,
640-
delim_close),
640+
delim_close),
641641
tmpsubject.strip())
642642

643643
# Match the classname if specified

roundup/password.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class Password(JournalPassword):
398398
deprecated_schemes = ["SSHA", "SHA", "MD5", "crypt", "plaintext"]
399399
experimental_schemes = ["PBKDF2S5"]
400400
known_schemes = ["PBKDF2"] + experimental_schemes + \
401-
deprecated_schemes
401+
deprecated_schemes
402402

403403
def __init__(self, plaintext=None, scheme=None, encrypted=None,
404404
strict=False, config=None):

0 commit comments

Comments
 (0)