Changeset cd552e in git for machine_learning/ml_python/common/keyword_vector.py
- Timestamp:
- Aug 12, 2019, 4:20:41 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 87d423b777b7762ac55fd9308018f3d7a12b9940
- Parents:
- b03e2f1e6cf3ff16ea956608cf7b560430904959
- git-author:
- Murray Heymann <heymann.murray@gmail.com>2019-08-12 16:20:41+02:00
- git-committer:
- Murray Heymann <heymann.murray@gmail.com>2019-08-12 16:20:52+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
machine_learning/ml_python/common/keyword_vector.py
rb03e2f rcd552e 20 20 print("Please provide a valid input file as argument to read " 21 21 "dictionary") 22 if sys.version_info[0] == 3: # pylint: disable=no-else-raise 23 raise FileNotFoundError 24 else: 25 raise IOError 22 print(filename) 23 raise IOError 26 24 27 25 … … 48 46 if not os.path.isfile(filename): 49 47 print("Please provide a valid input file as argument") 50 if sys.version_info[0] == 3: # pylint: disable=no-else-raise 51 raise FileNotFoundError 52 else: 53 print(filename) 54 raise IOError 48 print(filename) 49 raise IOError 55 50 assert dictionary is not None, \ 56 51 "Please provide a valid dictionary as argument"
Note: See TracChangeset
for help on using the changeset viewer.