From b329590b8d60569482219c50f31047e2169d3623 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Mon, 14 May 2007 13:14:08 +0000 Subject: [PATCH] [MERGE] commit 13823 from trunk. inspect caches old read files. causes reload problem with metaclasses. --- pisi/pxml/autoxml.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pisi/pxml/autoxml.py b/pisi/pxml/autoxml.py index 443697e5..27c9909c 100644 --- a/pisi/pxml/autoxml.py +++ b/pisi/pxml/autoxml.py @@ -278,6 +278,7 @@ class autoxml(oo.autosuper, oo.autoprop): try: fn = re.compile('\s*([tas]_[a-zA-Z]+).*').findall + inspect.linecache.clearcache() lines = filter(fn, inspect.getsourcelines(cls)[0]) decl_order = map(lambda x:x.split()[0], lines) except IOError: