[Python-modules-commits] r29697 - in packages/gamera/trunk/debian/patches (avoid_mktemp.diff)

danstender-guest at users.alioth.debian.org danstender-guest at users.alioth.debian.org
Tue Jul 8 23:49:57 UTC 2014


    Date: Tuesday, July 8, 2014 @ 23:49:56
  Author: danstender-guest
Revision: 29697

fixed avoid_mktemp.diff

Modified:
  packages/gamera/trunk/debian/patches/avoid_mktemp.diff

Modified: packages/gamera/trunk/debian/patches/avoid_mktemp.diff
===================================================================
--- packages/gamera/trunk/debian/patches/avoid_mktemp.diff	2014-07-08 23:33:38 UTC (rev 29696)
+++ packages/gamera/trunk/debian/patches/avoid_mktemp.diff	2014-07-08 23:49:56 UTC (rev 29697)
@@ -10,7 +10,7 @@
  
      ## STRIP OUT % AND # LINES
 -    tmpname = tempfile.mktemp()
-+    tmpname = tempfile.NamedTemporaryFile(delete=False)
++    tmpname = tempfile.NamedTemporaryFile(delete=False).name
      if sys.platform == 'win32':
          # NT VERSION OF GREP DOESN'T DO THE STRIPPING ... SIGH
          cmd = "grep.exe -v \'%\' "+fname+" > "+tmpname




More information about the Python-modules-commits mailing list