* [gentoo-commits] repo/gentoo:master commit in: dev-python/pyxdg/files/
@ 2015-10-28 7:20 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2015-10-28 7:20 UTC (permalink / raw
To: gentoo-commits
commit: ee4570ca72c2be138f732d1507a706835a3e40fa
Author: Anthony Ryan <anthonyryan1 <AT> gmail <DOT> com>
AuthorDate: Tue Oct 27 22:17:44 2015 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Oct 27 22:21:18 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee4570ca
dev-python/pyxdg: Removed unused patch
files/pyxdg-subprocess.patch is no longer used
Fixes https://bugs.gentoo.org/540940
dev-python/pyxdg/files/pyxdg-subprocess.patch | 38 ---------------------------
1 file changed, 38 deletions(-)
diff --git a/dev-python/pyxdg/files/pyxdg-subprocess.patch b/dev-python/pyxdg/files/pyxdg-subprocess.patch
deleted file mode 100644
index 7b9a1ba..0000000
--- a/dev-python/pyxdg/files/pyxdg-subprocess.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-#Patch sent to upstream on March 1st, 2009
-#Jesus Rivero (Neurogeek)
-#Replaced deprecated os.popen3 for subprocess
-
-diff -uNr xdg.orig/Menu.py xdg/Menu.py
---- xdg.orig/Menu.py 2009-03-01 04:34:38.000000000 -0430
-+++ xdg/Menu.py 2009-03-01 04:41:27.000000000 -0430
-@@ -12,6 +12,7 @@
-
- import xdg.Locale
- import xdg.Config
-+from subprocess import Popen, PIPE
-
- ELEMENT_NODE = xml.dom.Node.ELEMENT_NODE
-
-@@ -841,13 +842,16 @@
- return m
-
- def __parseKDELegacyDirs(filename, parent):
-- f=os.popen3("kde-config --path apps")
-- output = f[1].readlines()
- try:
-- for dir in output[0].split(":"):
-- __parseLegacyDir(dir,"kde", filename, parent)
-- except IndexError:
-- pass
-+ f=Popen("kde-config --path apps", shell=True, stdout=PIPE).stdout
-+ output = f.readlines()
-+ try:
-+ for dir in output[0].split(":"):
-+ __parseLegacyDir(dir,"kde", filename, parent)
-+ except IndexError:
-+ pass
-+ except:
-+ raise Exception, "kde-config failed"
-
- # remove duplicate entries from a list
- def __removeDuplicates(list):
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-28 7:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 7:20 [gentoo-commits] repo/gentoo:master commit in: dev-python/pyxdg/files/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox