mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Whitespace normalization.
This commit is contained in:
parent
cea2cc4a21
commit
6db15d7307
8 changed files with 52 additions and 52 deletions
|
@ -122,17 +122,17 @@ class CygwinCCompiler (UnixCCompiler):
|
||||||
"Consider upgrading to a newer version of gcc")
|
"Consider upgrading to a newer version of gcc")
|
||||||
else:
|
else:
|
||||||
self.dll_libraries=[]
|
self.dll_libraries=[]
|
||||||
# Include the appropriate MSVC runtime library if Python was built
|
# Include the appropriate MSVC runtime library if Python was built
|
||||||
# with MSVC 7.0 or 7.1.
|
# with MSVC 7.0 or 7.1.
|
||||||
msc_pos = sys.version.find('MSC v.')
|
msc_pos = sys.version.find('MSC v.')
|
||||||
if msc_pos != -1:
|
if msc_pos != -1:
|
||||||
msc_ver = sys.version[msc_pos+6:msc_pos+10]
|
msc_ver = sys.version[msc_pos+6:msc_pos+10]
|
||||||
if msc_ver == '1300':
|
if msc_ver == '1300':
|
||||||
# MSVC 7.0
|
# MSVC 7.0
|
||||||
self.dll_libraries = ['msvcr70']
|
self.dll_libraries = ['msvcr70']
|
||||||
elif msc_ver == '1310':
|
elif msc_ver == '1310':
|
||||||
# MSVC 7.1
|
# MSVC 7.1
|
||||||
self.dll_libraries = ['msvcr71']
|
self.dll_libraries = ['msvcr71']
|
||||||
|
|
||||||
# __init__ ()
|
# __init__ ()
|
||||||
|
|
||||||
|
@ -319,17 +319,17 @@ class Mingw32CCompiler (CygwinCCompiler):
|
||||||
# no additional libraries needed
|
# no additional libraries needed
|
||||||
self.dll_libraries=[]
|
self.dll_libraries=[]
|
||||||
|
|
||||||
# Include the appropriate MSVC runtime library if Python was built
|
# Include the appropriate MSVC runtime library if Python was built
|
||||||
# with MSVC 7.0 or 7.1.
|
# with MSVC 7.0 or 7.1.
|
||||||
msc_pos = sys.version.find('MSC v.')
|
msc_pos = sys.version.find('MSC v.')
|
||||||
if msc_pos != -1:
|
if msc_pos != -1:
|
||||||
msc_ver = sys.version[msc_pos+6:msc_pos+10]
|
msc_ver = sys.version[msc_pos+6:msc_pos+10]
|
||||||
if msc_ver == '1300':
|
if msc_ver == '1300':
|
||||||
# MSVC 7.0
|
# MSVC 7.0
|
||||||
self.dll_libraries = ['msvcr70']
|
self.dll_libraries = ['msvcr70']
|
||||||
elif msc_ver == '1310':
|
elif msc_ver == '1310':
|
||||||
# MSVC 7.1
|
# MSVC 7.1
|
||||||
self.dll_libraries = ['msvcr71']
|
self.dll_libraries = ['msvcr71']
|
||||||
|
|
||||||
# __init__ ()
|
# __init__ ()
|
||||||
|
|
||||||
|
|
|
@ -55,9 +55,9 @@ class ThreadSignals(unittest.TestCase):
|
||||||
# wait for it return.
|
# wait for it return.
|
||||||
if signal_blackboard[signal.SIGUSR2]['tripped'] == 0 \
|
if signal_blackboard[signal.SIGUSR2]['tripped'] == 0 \
|
||||||
or signal_blackboard[signal.SIGUSR2]['tripped'] == 0:
|
or signal_blackboard[signal.SIGUSR2]['tripped'] == 0:
|
||||||
signal.alarm(1)
|
signal.alarm(1)
|
||||||
signal.pause()
|
signal.pause()
|
||||||
signal.alarm(0)
|
signal.alarm(0)
|
||||||
|
|
||||||
self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped'], 1)
|
self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped'], 1)
|
||||||
self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped_by'],
|
self.assertEqual( signal_blackboard[signal.SIGUSR1]['tripped_by'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue