summaryrefslogtreecommitdiffstats
path: root/graders/lab3.py
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-07-10 03:31:54 -0700
committerraylu <raylu@mixpanel.com>2011-07-10 03:31:54 -0700
commit68ec6a5d93e5c2460bf686a53c2e8dee8549af08 (patch)
treeccab01231b188d1229a134415fde1100932d81da /graders/lab3.py
parenta2dc8b6d55ae2ab275b5460ab81362bfe454a623 (diff)
downloadpyc-68ec6a5d93e5c2460bf686a53c2e8dee8549af08.tar.xz
use __import__ instead of exec
Diffstat (limited to 'graders/lab3.py')
-rwxr-xr-xgraders/lab3.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/graders/lab3.py b/graders/lab3.py
index 5d4fdb0..0a3300d 100755
--- a/graders/lab3.py
+++ b/graders/lab3.py
@@ -36,7 +36,7 @@ pizfiles = [('handout.piz', 3950), ('invalid.piz', 1050)]
output = ''
score = 0
def run():
- exec("import %s as submission" % importname)
+ submission = __import__(importname)
global output, score
pizzas = [