Skip to content

Commit 988a943

Browse files
author
Johannes Gijsbers
committed
Small readability improvements.
1 parent 8e11e2b commit 988a943

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

roundup/hyperdb.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
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 $
1919

2020
"""
2121
Hyperdatabase implementation, especially field types.
@@ -230,8 +230,8 @@ def getclassdb(self, classname, mode='r'):
230230
raise NotImplementedError
231231

232232
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+
"""
235235
raise NotImplementedError
236236

237237
def serialise(self, classname, node):
@@ -598,12 +598,12 @@ def convertLinkValue(db, propname, prop, value, idre=re.compile('\d+')):
598598
return value
599599

600600
def fixNewlines(text):
601-
''' Homogenise line endings.
601+
""" Homogenise line endings.
602602
603603
Different web clients send different line ending values, but
604604
other systems (eg. email) don't necessarily handle those line
605605
endings. Our solution is to convert all line endings to LF.
606-
'''
606+
"""
607607
text = text.replace('\r\n', '\n')
608608
return text.replace('\r', '\n')
609609

roundup/roundupdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: roundupdb.py,v 1.94 2003-11-16 19:59:09 jlgijsbers Exp $
18+
# $Id: roundupdb.py,v 1.95 2003-11-16 20:01:16 jlgijsbers Exp $
1919

2020
__doc__ = """
2121
Extending hyperdb with types specific to issue-tracking.
@@ -150,7 +150,7 @@ def good_recipient(userid):
150150
# Make sure we don't send mail to either the anonymous
151151
# user or a user who has already seen the message.
152152
return (userid and
153-
self.db.user.get(userid, 'username') != 'anonymous' and
153+
(self.db.user.get(userid, 'username') != 'anonymous') and
154154
not seen_message.has_key(userid))
155155

156156
# possibly send the message to the author, as long as they aren't

0 commit comments

Comments
 (0)