Permalink
Browse files

whitespace + docstring

  • Loading branch information...
1 parent 54673d2 commit 59455d04d6c9c9bd4c3abd9cefe3338a3cf32b59 @mvantellingen mvantellingen committed Oct 15, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 psycopg2ct/_impl/connection.py
View
9 psycopg2ct/_impl/connection.py
@@ -67,9 +67,6 @@ def check_async_(self, *args, **kwargs):
return check_async_
-
-
-
class Connection(object):
# Various exceptions which should be accessible via the Connection
@@ -669,6 +666,12 @@ def _is_busy(self):
return res
def _process_notice(self, arg, message):
+ """Store the given message in `self.notices`
+
+ Also delete older entries to make sure there are no more then 50
+ entries in the list.
+
+ """
self.notices.append(message)
length = len(self.notices)
if length > 50:

0 comments on commit 59455d0

Please sign in to comment.