Fix python warning

This commit is contained in:
Matthias Kuhn 2019-10-05 11:21:56 +02:00
parent 54354406d0
commit fd9cc9354f

View File

@ -350,7 +350,7 @@ class PGRasterTable(PGTable, RasterTable):
def mimeUri(self):
# QGIS has no provider for PGRasters, let's use GDAL
uri = u"raster:gdal:%s:%s" % (self.name, re.sub(":", "\:", self.gdalUri()))
uri = u"raster:gdal:{}:{}".format(self.name, re.sub(":", r"\:", self.gdalUri()))
return uri
def toMapLayer(self):