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/sascalc/dataloader/readers/danse_reader.py

    r235f514 rb9d74f3  
    5656                datafile = open(filename, 'r') 
    5757            except: 
    58                 raise  RuntimeError,"danse_reader cannot open %s" % (filename) 
     58                raise  RuntimeError("danse_reader cannot open %s" % (filename)) 
    5959         
    6060            # defaults 
     
    271271            if not fversion >= 1.0: 
    272272                msg = "Danse_reader can't read this file %s" % filename 
    273                 raise ValueError, msg 
     273                raise ValueError(msg) 
    274274            else: 
    275275                logger.info("Danse_reader Reading %s \n" % filename) 
Note: See TracChangeset for help on using the changeset viewer.