mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +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()
|
||||
if firstline.startswith('#!') and 'python' in firstline:
|
||||
extra_module_paths.append(filepath)
|
||||
except IOError as e:
|
||||
# either permission error or race cond. because file got deleted
|
||||
except (UnicodeDecodeError, IOError) as e:
|
||||
# Probably a binary file; permission error or race cond. because file got deleted
|
||||
# ignore
|
||||
debug.warning(unicode(e))
|
||||
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