diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/bsddb/__init__.py | 2 | ||||
-rw-r--r-- | Lib/distutils/msvccompiler.py | 6 | ||||
-rw-r--r-- | Lib/test/test_zipfile.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index b7bd482..d3ee773 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -194,7 +194,7 @@ class _DBWithCursor(_iter_mixin): try: self.saved_dbc_key = c.current(0,0,0)[0] except db.DBError: - pass + pass c.close() del c for cref in self._cursor_refs.values(): diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index aefcf98..f88f365 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -184,7 +184,7 @@ def get_build_architecture(): return "Intel" j = string.find(sys.version, ")", i) return sys.version[i+len(prefix):j] - + class MSVCCompiler (CCompiler) : @@ -232,7 +232,7 @@ class MSVCCompiler (CCompiler) : else: # Win64. Assume this was built with the platform SDK self.__product = "Microsoft SDK compiler %s" % (self.__version + 6) - + self.initialized = False def initialize(self): @@ -281,7 +281,7 @@ class MSVCCompiler (CCompiler) : self.compile_options = [ '/nologo', '/Ox', '/MD', '/W3', '/GS-' , '/DNDEBUG'] self.compile_options_debug = ['/nologo', '/Od', '/MDd', '/W3', '/GS-', - '/Z7', '/D_DEBUG'] + '/Z7', '/D_DEBUG'] self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO'] if self.__version >= 7: diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index 9fadc30..0241348 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -53,7 +53,7 @@ class TestsWithSourceFile(unittest.TestCase): zipfp = zipfile.ZipFile(TESTFN2, "r", zipfile.ZIP_STORED) self.assertEqual(zipfp.namelist(), ["absolute"]) zipfp.close() - + def tearDown(self): os.remove(TESTFN) |