pymsnt (0.11.3-5) 130_twisted_2.4.patch

Summary

 src/main.py |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

diff -Nur pymsnt-0.11.3/src/main.py pymsnt-0.11.3.new/src/main.py
--- pymsnt-0.11.3/src/main.py	2008-02-08 13:55:07.000000000 +0000
+++ pymsnt-0.11.3.new/src/main.py	2008-02-16 12:51:07.000000000 +0000
@@ -379,7 +379,10 @@
 	# Set SIGHUP to reload the config file & close & open debug file
 	signal.signal(signal.SIGHUP, SIGHUPstuff)
 	# Load some scripts for PID and daemonising
-	from twisted.scripts import _twistd_unix as twistd
+        try:
+		from twisted.scripts import _twistd_unix as twistd
+	except ImportError:
+		from twisted.scripts import twistd
 
 
 def main():