|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: hyperdb.py,v 1.93 2003-11-16 19:59:10 jlgijsbers Exp $ |
| 18 | +# $Id: hyperdb.py,v 1.94 2003-11-16 20:01:16 jlgijsbers Exp $ |
19 | 19 |
|
20 | 20 | """ |
21 | 21 | Hyperdatabase implementation, especially field types. |
@@ -230,8 +230,8 @@ def getclassdb(self, classname, mode='r'): |
230 | 230 | raise NotImplementedError |
231 | 231 |
|
232 | 232 | def addnode(self, classname, nodeid, node): |
233 | | - '''Add the specified node to its class's db. |
234 | | - ''' |
| 233 | + """Add the specified node to its class's db. |
| 234 | + """ |
235 | 235 | raise NotImplementedError |
236 | 236 |
|
237 | 237 | def serialise(self, classname, node): |
@@ -598,12 +598,12 @@ def convertLinkValue(db, propname, prop, value, idre=re.compile('\d+')): |
598 | 598 | return value |
599 | 599 |
|
600 | 600 | def fixNewlines(text): |
601 | | - ''' Homogenise line endings. |
| 601 | + """ Homogenise line endings. |
602 | 602 |
|
603 | 603 | Different web clients send different line ending values, but |
604 | 604 | other systems (eg. email) don't necessarily handle those line |
605 | 605 | endings. Our solution is to convert all line endings to LF. |
606 | | - ''' |
| 606 | + """ |
607 | 607 | text = text.replace('\r\n', '\n') |
608 | 608 | return text.replace('\r', '\n') |
609 | 609 |
|
|
0 commit comments