Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Documented the `set' directives for {pat,dir}plex.
[ashd.git]
/
python
/
ashd
/
wsgidir.py
diff --git
a/python/ashd/wsgidir.py
b/python/ashd/wsgidir.py
index
f101117
..
8b473f2
100644
(file)
--- a/
python/ashd/wsgidir.py
+++ b/
python/ashd/wsgidir.py
@@
-38,7
+38,7
@@
you will probably want to use the getmod() function in this module.
"""
import os, threading, types
"""
import os, threading, types
-
from .
import wsgiutil
+import wsgiutil
__all__ = ["application", "wmain", "getmod", "cachedmod"]
__all__ = ["application", "wmain", "getmod", "cachedmod"]
@@
-102,7
+102,7
@@
def getmod(path):
code = compile(text, path, "exec")
mod = types.ModuleType(mangle(path))
mod.__file__ = path
code = compile(text, path, "exec")
mod = types.ModuleType(mangle(path))
mod.__file__ = path
- exec
(code, mod.__dict__)
+ exec
code in mod.__dict__
entry = cachedmod(mod, sb.st_mtime)
modcache[path] = entry
return entry
entry = cachedmod(mod, sb.st_mtime)
modcache[path] = entry
return entry