Commit 32cbc961 authored by Tim Peters's avatar Tim Peters

Whitespace normalization.

parent 124a4e58
...@@ -194,7 +194,7 @@ class _DBWithCursor(_iter_mixin): ...@@ -194,7 +194,7 @@ class _DBWithCursor(_iter_mixin):
try: try:
self.saved_dbc_key = c.current(0,0,0)[0] self.saved_dbc_key = c.current(0,0,0)[0]
except db.DBError: except db.DBError:
pass pass
c.close() c.close()
del c del c
for cref in self._cursor_refs.values(): for cref in self._cursor_refs.values():
......
...@@ -184,7 +184,7 @@ def get_build_architecture(): ...@@ -184,7 +184,7 @@ def get_build_architecture():
return "Intel" return "Intel"
j = string.find(sys.version, ")", i) j = string.find(sys.version, ")", i)
return sys.version[i+len(prefix):j] return sys.version[i+len(prefix):j]
class MSVCCompiler (CCompiler) : class MSVCCompiler (CCompiler) :
...@@ -232,7 +232,7 @@ class MSVCCompiler (CCompiler) : ...@@ -232,7 +232,7 @@ class MSVCCompiler (CCompiler) :
else: else:
# Win64. Assume this was built with the platform SDK # Win64. Assume this was built with the platform SDK
self.__product = "Microsoft SDK compiler %s" % (self.__version + 6) self.__product = "Microsoft SDK compiler %s" % (self.__version + 6)
self.initialized = False self.initialized = False
def initialize(self): def initialize(self):
...@@ -281,7 +281,7 @@ class MSVCCompiler (CCompiler) : ...@@ -281,7 +281,7 @@ class MSVCCompiler (CCompiler) :
self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GS-' , self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GS-' ,
'/DNDEBUG'] '/DNDEBUG']
self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GS-', self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GS-',
'/Z7', '/D_DEBUG'] '/Z7', '/D_DEBUG']
self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO'] self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
if self.__version >= 7: if self.__version >= 7:
......
...@@ -53,7 +53,7 @@ class TestsWithSourceFile(unittest.TestCase): ...@@ -53,7 +53,7 @@ class TestsWithSourceFile(unittest.TestCase):
zipfp = zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) zipfp = zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED)
self.assertEqual(zipfp.namelist(), ["absolute"]) self.assertEqual(zipfp.namelist(), ["absolute"])
zipfp.close() zipfp.close()
def tearDown(self): def tearDown(self):
os.remove(TESTFN) os.remove(TESTFN)
......
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