public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-python/pychecker/files: pychecker-0.8.19-create_script.patch
@ 2011-04-02 19:46 Arfrever Frehtes Taifersar Arahesis (arfrever)
  0 siblings, 0 replies; only message in thread
From: Arfrever Frehtes Taifersar Arahesis (arfrever) @ 2011-04-02 19:46 UTC (permalink / raw
  To: gentoo-commits

arfrever    11/04/02 19:46:45

  Added:                pychecker-0.8.19-create_script.patch
  Log:
  Version bump (bug #352668).
  
  (Portage version: 2.2.0_alpha29_p5/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-python/pychecker/files/pychecker-0.8.19-create_script.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pychecker/files/pychecker-0.8.19-create_script.patch?rev=1.1&content-type=text/plain

Index: pychecker-0.8.19-create_script.patch
===================================================================
--- setup.py
+++ setup.py
@@ -221,7 +221,9 @@
          script_str = "%s %s %%*\n" % (sys.executable, checker_path)
       else:
          script_str = '#! /bin/sh\n\n%s %s "$@"\n' % (sys.executable, checker_path)
-      open(script_path, "w").write(script_str)
+      script = open(script_path, "w")
+      script.write(script_str)
+      script.close()
    except Exception, e:
       print "ERROR: Unable to create %s: %s" % (script_path, e)
       raise e






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-02 19:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-02 19:46 [gentoo-commits] gentoo-x86 commit in dev-python/pychecker/files: pychecker-0.8.19-create_script.patch Arfrever Frehtes Taifersar Arahesis (arfrever)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox