changeset 230:691b508084f1

fix module
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 10 Jul 2012 16:10:10 -0700
parents 38ab5ff0e5cd
children aa6907de0b4c
files python/require.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/require.py	Mon Jul 09 14:16:03 2012 -0700
+++ b/python/require.py	Tue Jul 10 16:10:10 2012 -0700
@@ -9,7 +9,7 @@
     import urllib2
     contents = urllib2.urlopen(url).read()
     filename = url.rsplit('/', 1)[-1]
-    module = filename.rsplit('.', 1)[-1]
+    module = filename.rsplit('.', 1)[0]
     dest = tempfile.mkstemp(suffix='.py', prefix=module)
     f = file(dest, 'w')
     f.write(contents)