Changeset b9d74f3 in sasview for src/sas/sascalc/pr/fit/Loader.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/sascalc/pr/fit/Loader.py

    rac07a3a rb9d74f3  
    5757            # Sanity check 
    5858            if not len(self.x) == len(self.dx): 
    59                 raise ValueError, "x and dx have different length" 
     59                raise ValueError("x and dx have different length") 
    6060            if not len(self.y) == len(self.dy): 
    61                 raise ValueError, "y and dy have different length" 
     61                raise ValueError("y and dy have different length") 
    6262             
    6363             
Note: See TracChangeset for help on using the changeset viewer.