freebsd-ports/multimedia/devede/files/extra-psyco-patch-devede.py
Lars Engels 328fd3ec01 - fix Python Psyco support [1]
- update to 3.14.0

PR:		[1] ports/134109
Submitted by:	lioux
2009-08-07 16:23:22 +00:00

16 lines
415 B
Python

--- ./devede.py.orig 2009-04-30 08:17:34.000000000 -0300
+++ ./devede.py 2009-04-30 08:18:03.000000000 -0300
@@ -19,6 +19,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+try:
+ import psyco
+ import re
+ psyco.cannotcompile(re.compile)
+ psyco.profile()
+except ImportError:
+ pass
import sys
import os