Commits

Yuya Nishihara committed 58d625b

matching: remove unnecessary parenthesis

  • Participants
  • Parent commits e52bd04

Comments (0)

Files changed (1)

File tortoisehg/hgqt/matching.py

             validrevset = True
         except (error.LookupError, error.RepoLookupError):
             csinfo_set_text(_('<b>Unknown revision!</b>'))
-        except (error.ParseError):
+        except error.ParseError:
             csinfo_set_text(_('<b>Parse Error!</b>'))
         if validrevset:
             self.match_btn.setEnabled(True)
         if fields:
             self.revsetexpression = "matching(%s, '%s')" % (rev, ' '.join(fields))
         else:
-            self.revsetexpression = "matching(%s)" % (rev)
+            self.revsetexpression = "matching(%s)" % rev
         self.accept()
 
     ### Signal Handlers ###
     def _selectSummaryOrDescription(self, btn):
         # Uncheck all other buttons
         for b in self.desc_btngroup.buttons():
-            if not (b is btn):
+            if b is not btn:
                 b.setChecked(False)