1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/net-p2p/deluge/files/extra-psyco-patch-deluge__ui__web__web.py

18 lines
331 B
Python
Raw Normal View History

--- deluge/ui/web/web.py.orig 2010-02-17 03:40:21.000000000 -0200
+++ deluge/ui/web/web.py 2010-02-17 03:40:33.000000000 -0200
@@ -33,6 +33,14 @@
#
#
+try:
+ import psyco
+ import re
+ psyco.cannotcompile(re.compile)
+ psyco.profile()
+except ImportError:
+ pass
+
import os
from deluge.ui.ui import _UI, UI