Last change
on this file since 1203 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
289 bytes
|
Line | |
---|
1 | |
---|
2 | """ Utility module """ |
---|
3 | |
---|
4 | def processDesc(desc): |
---|
5 | """ Utility function for processing objects descriptions """ |
---|
6 | import re |
---|
7 | pattern1 = re.compile(r'[\r\n]', re.M|re.I) |
---|
8 | pattern2 = re.compile(r'[\"]', re.M|re.I) |
---|
9 | res = pattern2.sub("'", desc) |
---|
10 | return pattern1.sub(' ', res) |
---|
Note: See
TracBrowser
for help on using the repository browser.