mirror of
https://github.com/kennethreitz/records.git
synced 2026-06-05 06:46:17 +00:00
updated repr for database
This commit is contained in:
+1
-3
@@ -192,9 +192,7 @@ class Database(object):
|
||||
self.close()
|
||||
|
||||
def __repr__(self):
|
||||
status = 'Open' if self.open else 'Closed'
|
||||
r = '{}(url={}, status={})'.format(self.__class__.__name__, self.db_url, status)
|
||||
return r
|
||||
return '<Database open={}>'.format(self.open)
|
||||
|
||||
def _enable_hstore(self):
|
||||
"""Enables HSTORE support, if available."""
|
||||
|
||||
Reference in New Issue
Block a user