[csw-devel] SF.net SVN: gar:[20886] csw/mgar/gar/v2/lib/python/inspective_package.py
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Sun Apr 28 00:25:47 CEST 2013
Revision: 20886
http://gar.svn.sourceforge.net/gar/?rev=20886&view=rev
Author: chninkel
Date: 2013-04-27 22:25:47 +0000 (Sat, 27 Apr 2013)
Log Message:
-----------
gar/checkpkg: (FileMagic) don't call close on _magic_cookie if it has not been initialized
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/inspective_package.py
Modified: csw/mgar/gar/v2/lib/python/inspective_package.py
===================================================================
--- csw/mgar/gar/v2/lib/python/inspective_package.py 2013-04-27 22:23:07 UTC (rev 20885)
+++ csw/mgar/gar/v2/lib/python/inspective_package.py 2013-04-27 22:25:47 UTC (rev 20886)
@@ -691,8 +691,9 @@
self._magic_cookie = None
def close(self):
- self._magic_cookie.close()
- self._magic_cookie = None
+ if self._magic_cookie is not None:
+ self._magic_cookie.close()
+ self._magic_cookie = None
@property
def magic_cookie(self):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list