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/perspectives/invariant/invariant_state.py

    r7432acb rb9d74f3  
    365365            msg = "InvariantSate no longer supports non-CanSAS" 
    366366            msg += " format for invariant files" 
    367             raise RuntimeError, msg 
     367            raise RuntimeError(msg) 
    368368 
    369369        if node.get('version')\ 
     
    739739                        output.append(sas_entry) 
    740740        else: 
    741             raise RuntimeError, "%s is not a file" % path 
     741            raise RuntimeError("%s is not a file" % path) 
    742742 
    743743        # Return output consistent with the loader's api 
     
    785785            msg = "The cansas writer expects a Data1D" 
    786786            msg += " instance: %s" % str(datainfo.__class__.__name__) 
    787             raise RuntimeError, msg 
     787            raise RuntimeError(msg) 
    788788        # make sure title and data run is filled up. 
    789789        if datainfo.title is None or datainfo.title == '': 
Note: See TracChangeset for help on using the changeset viewer.