@@ -653,7 +653,7 @@ def do_initialise(self, tracker_home, args):
653653 tx_Source = 'cli' )
654654 except OptionUnsetError as e :
655655 raise UsageError ("In %(tracker_home)s/config.ini - %(error)s" % {
656- 'error' : str (e ), 'tracker_home' : tracker_home })
656+ 'error' : str (e ), 'tracker_home' : tracker_home })
657657
658658 return 0
659659
@@ -1739,12 +1739,12 @@ def do_migrate(self, args):
17391739 into the habit.
17401740 """
17411741 if self .db .db_version_updated :
1742- print (_ ('Tracker updated to schema version %s.' ) %
1742+ print (_ ('Tracker updated to schema version %s.' ) %
17431743 self .db .database_schema ['version' ])
17441744 self .db_uncommitted = True
17451745 else :
17461746 print (_ ('No migration action required. At schema version %s.' ) %
1747- self .db .database_schema ['version' ])
1747+ self .db .database_schema ['version' ])
17481748 return 0
17491749
17501750 def do_perftest (self , args ):
@@ -1763,14 +1763,13 @@ def do_perftest(self, args):
17631763 """
17641764 from roundup .anypy .time_ import perf_counter
17651765
1766- props = { "rounds" : self .db .config .PASSWORD_PBKDF2_DEFAULT_ROUNDS ,
1767- "scheme" : password .Password .known_schemes [0 ]
1768- }
1766+ props = {"rounds" : self .db .config .PASSWORD_PBKDF2_DEFAULT_ROUNDS ,
1767+ "scheme" : password .Password .known_schemes [0 ]}
17691768
17701769 print_supported_schemes = lambda : print (
1771- "Supported schemes (default is first, case "
1772- "sensitive):\n %s." %
1773- ", " .join (password .Password .known_schemes ))
1770+ "Supported schemes (default is first, case "
1771+ "sensitive):\n %s." %
1772+ ", " .join (password .Password .known_schemes ))
17741773
17751774 if (args [0 ].find ("=" ) != - 1 ):
17761775 args .insert (0 , 'password' )
@@ -1780,7 +1779,7 @@ def do_perftest(self, args):
17801779 if args [0 ] == "password" :
17811780 try :
17821781 # convert 10,000,000 or 10.000.000 to 10000000
1783- r = int (re .sub ('[,.]' ,'' ,props ['rounds' ]))
1782+ r = int (re .sub ('[,.]' , '' , props ['rounds' ]))
17841783 if r < 1000 :
17851784 print (_ ("Invalid 'rounds'. Must be larger than 999." ))
17861785 return
@@ -1789,7 +1788,7 @@ def do_perftest(self, args):
17891788 print (_ ("Invalid 'rounds'. It must be an integer not: %s" ) %
17901789 props ['rounds' ])
17911790 return
1792- if props ['scheme' ] == None :
1791+ if props ['scheme' ] is None :
17931792 print_supported_schemes ()
17941793 return
17951794
0 commit comments