Skip to content

Commit

Permalink
Use str(), not unicode() to cast URI for use in psycopg2
Browse files Browse the repository at this point in the history
Hopefully fixes the new DBManager tests
  • Loading branch information
strk committed Jun 6, 2017
1 parent 3efee43 commit 50641f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/postgis/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, uri):
self._checkRasterColumnsTable()

def _connectionInfo(self):
return unicode(self.uri().connectionInfo(True))
return str(self.uri().connectionInfo(True))

def _checkSpatial(self):
""" check whether postgis_version is present in catalog """
Expand Down

0 comments on commit 50641f7

Please sign in to comment.