Commits

Benoît Allard committed 2bf5472

pep8-ification

Comments (0)

Files changed (1)

 
     [hotfiles]
     pattern = issue\d+
-    include.glob = 
+    include.glob =
       **/*.py
     exclude.glob =
       README*
     print "Mercurial version too old, please upgrade to at least 1.9"
     raise
 
+
 def getb():
     try:
         b = extensions.find('b')
         return None
     return b
 
+
 @command('hotfiles',
          [('r', 'rev', '', _('operate up to a given revision'), 'REV'),
           ('p', 'pattern', '', _('pattern to filter issue-fixing commits'),
 )
 def hotfiles(ui, repo, node=None, rev='.', pattern=None, **opts):
     """ Print the ten files the most susceptible to contains issues.
-    
+
     The calculation is based on the number of time a file was touched during
     a bug-fixing commit, later commits weight more than earlier ones.
-    
+
     The list of files analysed is based on the files present in the sepcified
     revision, this list can be filtered through the usage of include/exclude
     patterns on the command line or in the configuration file.
-    
+
     The list of revisions analysed is by default all the non-merge revision.
     This list can be filtered by using a pattern given through the command line
     or the configuration file.
         max = d[0][1]
     for f, s in d:
         if ui.verbose:
-            ui.write('% 4d: %s\n' % (int(s/max * 100), f))
+            ui.write('% 4d: %s\n' % (int(s / max * 100), f))
         else:
             ui.write('%s\n' % f)