Skip to content
Permalink
Browse files

Use str(), not unicode() to cast URI for use in psycopg2

Hopefully fixes the new DBManager tests
  • Loading branch information
strk committed Jun 6, 2017
1 parent 3efee43 commit 50641f78c5a4797986b961819f6bfcac5a230046
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/postgis/connector.py
@@ -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 """

0 comments on commit 50641f7

Please sign in to comment.
You can’t perform that action at this time.