mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 14:34:31 +08:00
Merge branch 'buildout-unicode-decode-error' of https://github.com/mfussenegger/jedi into linter
This commit is contained in:
@@ -273,8 +273,8 @@ def _get_buildout_scripts(module_path):
|
|||||||
firstline = f.readline()
|
firstline = f.readline()
|
||||||
if firstline.startswith('#!') and 'python' in firstline:
|
if firstline.startswith('#!') and 'python' in firstline:
|
||||||
extra_module_paths.append(filepath)
|
extra_module_paths.append(filepath)
|
||||||
except IOError as e:
|
except (UnicodeDecodeError, IOError) as e:
|
||||||
# either permission error or race cond. because file got deleted
|
# Probably a binary file; permission error or race cond. because file got deleted
|
||||||
# ignore
|
# ignore
|
||||||
debug.warning(unicode(e))
|
debug.warning(unicode(e))
|
||||||
continue
|
continue
|
||||||
|
|||||||
1
test/test_evaluate/buildout_project/bin/binary_file
Normal file
1
test/test_evaluate/buildout_project/bin/binary_file
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<EFBFBD>PNG
|
||||||
Reference in New Issue
Block a user