Thread: [Pydev-cvs] org.python.pydev/PySrc/ThirdParty/logilab/common textutils.py,1.4,1.5
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-02-24 19:10:45
|
Update of /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20592/PySrc/ThirdParty/logilab/common Modified Files: textutils.py Log Message: minor patch Index: textutils.py =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/PySrc/ThirdParty/logilab/common/textutils.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** textutils.py 16 Feb 2005 16:45:42 -0000 1.4 --- textutils.py 24 Feb 2005 19:10:36 -0000 1.5 *************** *** 177,181 **** :return: the unquoted string (or the input string if it wasn't quoted) """ ! return [word.strip() for word in string.split(sep) if word.strip()] --- 177,188 ---- :return: the unquoted string (or the input string if it wasn't quoted) """ ! #patched: Fabio - not pretty, but Sylvain should correct it in the next release. ! if isinstance(string , list): ! return string ! try: ! return [word.strip() for word in string.split(sep) if word.strip()] ! except: ! print 'ERROR with word:', string, string.__class__ ! raise |