Changeset b9d74f3 in sasview for src/sas/sasgui/plottools/binder.py


Ignore:
Timestamp:
Apr 20, 2017 6:29:34 AM (8 years ago)
Author:
andyfaff
Children:
0cc77d8
Parents:
b636dfc5
git-author:
Andrew Nelson <andyfaff@…> (04/20/17 06:25:57)
git-committer:
Andrew Nelson <andyfaff@…> (04/20/17 06:29:34)
Message:

MAINT: use raise Exception() not raise Exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/binder.py

    r463e7ffc rb9d74f3  
    187187        # Check that the trigger is valid 
    188188        if trigger not in self._actions: 
    189             raise ValueError, "%s invalid --- valid triggers are %s"\ 
    190                  % (trigger, ", ".join(self.events)) 
     189            raise ValueError("%s invalid --- valid triggers are %s"\ 
     190                 % (trigger, ", ".join(self.events))) 
    191191 
    192192        # Register the trigger callback 
     
    203203        """ 
    204204        if action not in self.events: 
    205             raise ValueError, "Trigger expects " + ", ".join(self.events) 
     205            raise ValueError("Trigger expects " + ", ".join(self.events)) 
    206206 
    207207        # Tag the event with modifiers 
Note: See TracChangeset for help on using the changeset viewer.