Changeset 16818 for main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py
- Timestamp:
- 21 Feb 2022, 06:21:10 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/helpers.py
r15748 r16818 770 770 Returns line num of first illegal char or ``None``. Line nums 771 771 start counting with 1 (not zero). Returns -1 if data contain 772 trailing whitespaces .772 trailing whitespaces (deactivated). 773 773 """ 774 774 linenum = 1 … … 777 777 for row in reader: 778 778 linenum += 1 779 for value in row.values():780 if value.endswith(' '):781 return -1779 #for value in row.values(): 780 # if value.endswith(' '): 781 # return -1 782 782 except UnicodeDecodeError: 783 783 return linenum
Note: See TracChangeset for help on using the changeset viewer.