Skip to content

Commit 07dde84

Browse files
committed
flake8 E225 missing whitespace around operator
1 parent ef1cb09 commit 07dde84

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

roundup/cgi/templating.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def anti_csrf_nonce(client, lifetime=None):
215215
by the csrf validator that runs in the client::inner_main
216216
module/function.
217217
'''
218-
otks=client.db.getOTKManager()
218+
otks = client.db.getOTKManager()
219219
key = otks.getUniqueKey()
220220
# lifetime is in minutes.
221221
if lifetime is None:
@@ -623,10 +623,10 @@ def __init__(self):
623623
html_version = self._client.instance.config.HTML_VERSION
624624
if html_version == 'xhtml':
625625
self.input = input_xhtml
626-
self.cgi_escape_attrs=xhtml_cgi_escape_attrs
626+
self.cgi_escape_attrs = xhtml_cgi_escape_attrs
627627
else:
628628
self.input = input_html4
629-
self.cgi_escape_attrs=html4_cgi_escape_attrs
629+
self.cgi_escape_attrs = html4_cgi_escape_attrs
630630
# self._context is used for translations.
631631
# will be initialized by the first call to .gettext()
632632
self._context = None
@@ -773,8 +773,8 @@ def properties(self, sort=1, cansearch=True):
773773
search.
774774
"""
775775
l = []
776-
canSearch=self._db.security.hasSearchPermission
777-
userid=self._client.userid
776+
canSearch = self._db.security.hasSearchPermission
777+
userid = self._client.userid
778778
for name, prop in self._props.items():
779779
if cansearch and \
780780
not canSearch(userid, self._classname, name):
@@ -921,7 +921,7 @@ def classhelp(self, properties=None, label=''"(list)", width='500',
921921
if form:
922922
form = '&form=%s'%form
923923
if inputtype:
924-
type= '&type=%s'%inputtype
924+
type = '&type=%s'%inputtype
925925
if filter:
926926
filterprops = filter.split(';')
927927
filtervalues = []
@@ -1688,7 +1688,7 @@ def _hyper_repl_item(self, match, replacement):
16881688
id = match.group('id')
16891689
fragment = match.group('fragment')
16901690
if fragment is None:
1691-
fragment=""
1691+
fragment = ""
16921692
try:
16931693
# make sure cls is a valid tracker classname
16941694
cl = self._db.getclass(cls)
@@ -2119,7 +2119,7 @@ def field(self, labelfirst=False, y_label=None, n_label=None,
21192119
y_rb = self.input(type="radio", name=self._formname, value="yes",
21202120
checked="checked", id="%s_%s"%(self._formname, 'yes'), **kwargs)
21212121

2122-
n_rb =self.input(type="radio", name=self._formname, value="no",
2122+
n_rb = self.input(type="radio", name=self._formname, value="no",
21232123
id="%s_%s"%(self._formname, 'no'), **kwargs)
21242124
else:
21252125
y_rb = self.input(type="radio", name=self._formname, value="yes",
@@ -2136,12 +2136,12 @@ def field(self, labelfirst=False, y_label=None, n_label=None,
21362136
else:
21372137
# don't generate a trivalue radiobutton.
21382138
u_label = ''
2139-
u_rb=''
2139+
u_rb = ''
21402140

21412141
if (labelfirst):
21422142
s = u_label + u_rb + y_label + y_rb + n_label + n_rb
21432143
else:
2144-
s = u_label + u_rb +y_rb + y_label + n_rb + n_label
2144+
s = u_label + u_rb + y_rb + y_label + n_rb + n_label
21452145

21462146
return s
21472147

@@ -2578,7 +2578,7 @@ def menu(self, size=None, height=None, showid=0, additional=[], value=None,
25782578
# figure if this option is selected
25792579
s = ''
25802580
# record the marker for the selected item if requested
2581-
selected_mark=''
2581+
selected_mark = ''
25822582

25832583
if value in [optionid, option]:
25842584
s = 'selected="selected" '
@@ -2768,7 +2768,7 @@ def field(self, size=30, showid=0, **kwargs):
27682768
value = self._value[:]
27692769
# map the id to the label property
27702770
if not linkcl.getkey():
2771-
showid=1
2771+
showid = 1
27722772
if not showid:
27732773
k = linkcl.labelprop(1)
27742774
value = lookupKeys(linkcl, k, value)

0 commit comments

Comments
 (0)