Mercurial > p > roundup > code
diff templates/minimal/detectors/__init__.py @ 1834:9ee31fcdb9bb maint-0.6
Fixed detectors fix incorrectly fixed in bugfix release 0.6.2
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 07 Oct 2003 06:15:22 +0000 |
| parents | cc5e997fd6b6 |
| children |
line wrap: on
line diff
--- a/templates/minimal/detectors/__init__.py Tue Oct 07 06:07:41 2003 +0000 +++ b/templates/minimal/detectors/__init__.py Tue Oct 07 06:15:22 2003 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -#$Id: __init__.py,v 1.1.2.2 2003-09-04 23:46:09 richard Exp $ +#$Id: __init__.py,v 1.1.2.3 2003-10-07 06:15:22 richard Exp $ import sys, os, imp @@ -31,7 +31,7 @@ path = os.path.abspath(os.path.join(this_dir, filename)) fp = open(path) try: - module = imp.load_module(name, open(path), path, + module = imp.load_module(name, fp, path, ('.py', 'r', imp.PY_SOURCE)) finally: fp.close()
