You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
python extractor is completely broken with Python 3.4, lingua 4.3.1; throws on any file with more than 0 bytes.
% ls
total 0
% pot-create .
No files scanned, aborting
% echo > foo.py
% pot-create .
Traceback (most recent call last):
File ".../venv/bin/pot-create", line 11, in <module>
sys.exit(main())
File ".../venv/lib/python3.4/site-packages/lingua/extract.py", line 280, in main
for message in extractor(real_filename, options):
File ".../venv/lib/python3.4/site-packages/lingua/extractors/python.py", line 349, in __call__
return parser(token_stream, options, filename, lineno)
File ".../venv/lib/python3.4/site-packages/lingua/extractors/python.py", line 164, in __call__
for (token_type, token, location, _) in token_stream:
File ".../venv/lib/python3.4/site-packages/lingua/extractors/python.py", line 138, in next
token = self._transform(next(self.queue))
File ".../venv/lib/python3.4/tokenize.py", line 554, in _tokenize
if line[pos] in '#\r\n': # skip comments or blank lines
TypeError: 'in <string>' requires string as left operand, not int
The text was updated successfully, but these errors were encountered:
python extractor is completely broken with Python 3.4, lingua 4.3.1; throws on any file with more than 0 bytes.
The text was updated successfully, but these errors were encountered: