24 lines
654 B
Diff
24 lines
654 B
Diff
Index: jack2-1.9.22/waflib/Context.py
|
|
===================================================================
|
|
--- jack2-1.9.22.orig/waflib/Context.py
|
|
+++ jack2-1.9.22/waflib/Context.py
|
|
@@ -6,10 +6,17 @@
|
|
Classes and functions enabling the command system
|
|
"""
|
|
|
|
-import os, re, imp, sys
|
|
+import os, re, sys
|
|
from waflib import Utils, Errors, Logs
|
|
import waflib.Node
|
|
|
|
+if sys.hexversion >= 0x3040000:
|
|
+ import types
|
|
+ class imp(object):
|
|
+ new_module = lambda x: types.ModuleType(x)
|
|
+else:
|
|
+ import imp
|
|
+
|
|
# the following 3 constants are updated on each new release (do not touch)
|
|
HEXVERSION=0x2000c00
|
|
"""Constant updated on new releases"""
|