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/sesans_reader.py

    r9a5097c rb9d74f3  
    5757                    input_f = open(path,'rb') 
    5858                except: 
    59                     raise  RuntimeError, "sesans_reader: cannot open %s" % path 
     59                    raise  RuntimeError("sesans_reader: cannot open %s" % path) 
    6060                buff = input_f.read() 
    6161                lines = buff.splitlines() 
     
    158158 
    159159                if len(output.x) < 1: 
    160                     raise RuntimeError, "%s is empty" % path 
     160                    raise RuntimeError("%s is empty" % path) 
    161161                return output 
    162162 
    163163        else: 
    164             raise RuntimeError, "%s is not a file" % path 
     164            raise RuntimeError("%s is not a file" % path) 
    165165        return None 
    166166 
Note: See TracChangeset for help on using the changeset viewer.