mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-04 00:30:59 -05:00
Fix python warning
This commit is contained in:
parent
54354406d0
commit
fd9cc9354f
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user