mailr6390 - /1.3/data/data_classes.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 22, 2008 - 14:40:
Author: bugman
Date: Sun Jun 22 14:40:07 2008
New Revision: 6390

URL: http://svn.gna.org/viewcvs/relax?rev=6390&view=rev
Log:
Replaced re.match with re.search.


Modified:
    1.3/data/data_classes.py

Modified: 1.3/data/data_classes.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/data_classes.py?rev=6390&r1=6389&r2=6390&view=diff
==============================================================================
--- 1.3/data/data_classes.py (original)
+++ 1.3/data/data_classes.py Sun Jun 22 14:40:07 2008
@@ -21,7 +21,7 @@
 
###############################################################################
 
 # Python module imports.
-from re import match
+from re import search
 from types import DictType, ListType
 
 
@@ -38,7 +38,7 @@
 
         # Data structures.
         for name in dir(self):
-            if match("^_", name):
+            if search("^_", name):
                 continue
             text = text + "%-25s%-100s\n" % (name, `getattr(self, name)`)
 
@@ -60,7 +60,7 @@
                 continue
 
             # Skip special objects.
-            if match("^__", name):
+            if search("^__", name):
                 continue
 
             # An object has been added.




Related Messages


Powered by MHonArc, Updated Sun Jun 22 15:00:19 2008