summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/plwm/files/plwm-2.5-python2.5.patch')
-rw-r--r--x11-wm/plwm/files/plwm-2.5-python2.5.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/x11-wm/plwm/files/plwm-2.5-python2.5.patch b/x11-wm/plwm/files/plwm-2.5-python2.5.patch
new file mode 100644
index 000000000000..334ac94850eb
--- /dev/null
+++ b/x11-wm/plwm/files/plwm-2.5-python2.5.patch
@@ -0,0 +1,21 @@
+diff -ur plwm-2.5.orig/plwm/inspect.py plwm-2.5/plwm/inspect.py
+--- plwm-2.5.orig/plwm/inspect.py 2007-06-29 13:30:28.000000000 +0200
++++ plwm-2.5/plwm/inspect.py 2007-06-29 14:36:43.000000000 +0200
+@@ -23,7 +23,7 @@
+ import sys
+ import traceback
+ import struct
+-import whrandom
++import random
+ import cStringIO
+
+ InspectFileEventType = event.new_event_type()
+@@ -75,7 +75,7 @@
+ # portnumber in a property on screen 0
+
+ addr, port = self.inspect_socket.getsockname()
+- self.inspect_cookie = whrandom.randint(0, 0x7ffffffe)
++ self.inspect_cookie = random.randint(0, 0x7ffffffe)
+
+ self.default_screen.root.change_property(self.PLWM_INSPECT_SERVER,
+ self.PLWM_INSPECT_SERVER,