mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fix errors found by pychecker
This commit is contained in:
parent
e588c2ba97
commit
6aaccc6b55
5 changed files with 11 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
|||
import sys, os
|
||||
import ctypes
|
||||
|
||||
# find_library(name) returns the pathname of a library, or None.
|
||||
if os.name == "nt":
|
||||
|
@ -41,7 +40,7 @@ if os.name == "posix" and sys.platform == "darwin":
|
|||
|
||||
elif os.name == "posix":
|
||||
# Andreas Degert's find functions, using gcc, /sbin/ldconfig, objdump
|
||||
import re, tempfile
|
||||
import re, tempfile, errno
|
||||
|
||||
def _findLib_gcc(name):
|
||||
expr = '[^\(\)\s]*lib%s\.[^\(\)\s]*' % name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue