From 06d6fd768703321973e6d754b0a38828f93df39f Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 26 Apr 2007 19:43:19 +0000 Subject: [PATCH] [MERGE] From-Import-Removal --- pisi/pxml/autoxml.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pisi/pxml/autoxml.py b/pisi/pxml/autoxml.py index 00cf3bb9..443697e5 100644 --- a/pisi/pxml/autoxml.py +++ b/pisi/pxml/autoxml.py @@ -26,6 +26,8 @@ import types import formatter import sys import StringIO +import inspect +import re import gettext __trans = gettext.translation('pisi', fallback=True) @@ -274,13 +276,9 @@ class autoxml(oo.autosuper, oo.autoprop): # read declaration order from source # code contributed by bahadir kandemir try: - from inspect import getsourcelines - from itertools import ifilter - import re - fn = re.compile('\s*([tas]_[a-zA-Z]+).*').findall - lines = filter(fn, getsourcelines(cls)[0]) + lines = filter(fn, inspect.getsourcelines(cls)[0]) decl_order = map(lambda x:x.split()[0], lines) except IOError: decl_order = dict.keys()