Changeset 88d2e70 in sasview for test/sasdataloader/plugins/test_reader.py
- Timestamp:
- Oct 11, 2018 12:03:40 PM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1249
- Children:
- 7c4bb4d
- Parents:
- e090ba90
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/sasdataloader/plugins/test_reader.py
raaf5e49 r88d2e70 40 40 input_f = open(path,'r') 41 41 except : 42 raise RuntimeError , "ascii_reader: cannot open %s" % path42 raise RuntimeError("ascii_reader: cannot open %s" % path) 43 43 buff = input_f.read() 44 44 lines = buff.split('\n') … … 55 55 return output 56 56 else: 57 raise RuntimeError , "%s is not a file" % path57 raise RuntimeError("%s is not a file" % path) 58 58 return None 59 59
Note: See TracChangeset
for help on using the changeset viewer.