Skip to content

Commit 142d9ec

Browse files
committed
flake8 fixes test code.
1 parent 6602745 commit 142d9ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

roundup/test/tx_Source_detector.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# tx_Source is associated with the same ticket.
1616

1717
from __future__ import print_function
18-
import time as time
18+
1919

2020
def tx_SourceCheckAudit(db, cl, nodeid, newvalues):
2121
''' An auditor to print the value of the source of the
@@ -34,7 +34,8 @@ def tx_SourceCheckAudit(db, cl, nodeid, newvalues):
3434
signature is used
3535
'''
3636
if __debug__ and False:
37-
print("\n tx_SourceCheckAudit(%s) db.tx_Source: %s"%(nodeid, db.tx_Source))
37+
print("\n tx_SourceCheckAudit(%s) db.tx_Source: %s" % (
38+
nodeid, db.tx_Source))
3839

3940
newvalues['tx_Source'] = db.tx_Source
4041

@@ -44,6 +45,7 @@ def tx_SourceCheckAudit(db, cl, nodeid, newvalues):
4445
# if db.tx_Source == "email":
4546
# raise Reject, 'Change not allowed via email'
4647

48+
4749
def tx_SourceCheckReact(db, cl, nodeid, oldvalues):
4850
''' An reactor to print the value of the source of the
4951
transaction that trigger this change. The sleep call
@@ -62,8 +64,8 @@ def tx_SourceCheckReact(db, cl, nodeid, oldvalues):
6264
'''
6365

6466
if __debug__ and False:
65-
print(" tx_SourceCheckReact(%s) db.tx_Source: %s"%(nodeid, db.tx_Source))
66-
67+
print(" tx_SourceCheckReact(%s) db.tx_Source: %s" % (
68+
nodeid, db.tx_Source))
6769

6870

6971
def init(db):

0 commit comments

Comments
 (0)