summaryrefslogtreecommitdiffhomepage
path: root/scripts/jinja2/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/jinja2/environment.py')
-rw-r--r--scripts/jinja2/environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/jinja2/environment.py b/scripts/jinja2/environment.py
index 06156b8..feb6df3 100644
--- a/scripts/jinja2/environment.py
+++ b/scripts/jinja2/environment.py
@@ -637,9 +637,9 @@ class Environment(object):
warn(Warning('py_compile has no effect on pypy or Python 3'))
py_compile = False
else:
- import imp
+ import importlib.util
import marshal
- py_header = imp.get_magic() + \
+ py_header = importlib.util.MAGIC_NUMBER + \
u'\xff\xff\xff\xff'.encode('iso-8859-15')
# Python 3.3 added a source filesize to the header