Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7868e46

Browse files
committed
Move import.
1 parent 8149933 commit 7868e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lambda_local/main.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Licensed under MIT.
44
'''
55

6-
import imp
76
import sys
87
import traceback
98
import json
@@ -103,6 +102,7 @@ def load(request_id, path, function_name):
103102
sys.path.append(file_directory)
104103

105104
if sys.version_info.major == 2:
105+
import imp
106106
mod = imp.load_source(mod_name, path)
107107
elif sys.version_info.major == 3 and sys.version_info.minor >= 5:
108108
import importlib

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /