Kaydet (Commit) 211219af authored tarafından Tim Peters's avatar Tim Peters

Whitespace normalization.

üst 1bddfb84
......@@ -220,7 +220,7 @@ class UnixCCompiler(CCompiler):
# skip over environment variable settings if /usr/bin/env
# is used to set up the linker's environment.
# This is needed on OSX. Note: this assumes that the
# normal and C++ compiler have the same environment
# normal and C++ compiler have the same environment
# settings.
i = 0
if os.path.basename(linker[0]) == "env":
......
......@@ -69,10 +69,10 @@ def get_platform ():
release = m.group()
elif osname[:6] == "darwin":
#
# For our purposes, we'll assume that the system version from
# distutils' perspective is what MACOSX_DEPLOYMENT_TARGET is set
# For our purposes, we'll assume that the system version from
# distutils' perspective is what MACOSX_DEPLOYMENT_TARGET is set
# to. This makes the compatibility story a bit more sane because the
# machine is going to compile and link as if it were
# machine is going to compile and link as if it were
# MACOSX_DEPLOYMENT_TARGET.
from distutils.sysconfig import get_config_vars
cfgvars = get_config_vars()
......@@ -97,7 +97,7 @@ def get_platform ():
r'<string>(.*?)</string>', f.read())
f.close()
if m is not None:
macver = '.'.join(m.group(1).split('.')[:2])
macver = '.'.join(m.group(1).split('.')[:2])
# else: fall back to the default behaviour
if macver:
......
......@@ -50,7 +50,7 @@ def calcsize(fmt):
except KeyError:
o = _compile(fmt)
return o.size
def pack(fmt, *args):
"""
Return string containing values v1, v2, ... packed according to fmt.
......@@ -73,4 +73,3 @@ def unpack(fmt, s):
except KeyError:
o = _compile(fmt)
return o.unpack(s)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment