Merge "Use exec() rather than execfile()"
diff --git a/project.py b/project.py
index 897f4c9..55c188d 100644
--- a/project.py
+++ b/project.py
@@ -438,7 +438,8 @@
       # and  convert to a HookError w/ just the failing traceback.
       context = {}
       try:
-        execfile(self._script_fullpath, context)
+        exec(compile(open(self._script_fullpath).read(),
+                     self._script_fullpath, 'exec'), context)
       except Exception:
         raise HookError('%s\nFailed to import %s hook; see traceback above.' % (
                         traceback.format_exc(), self._hook_type))