Indentation

This commit is contained in:
Nyall Dawson 2018-01-16 11:37:08 +10:00
parent 38062ec649
commit 6c57654d2c
2 changed files with 3 additions and 3 deletions

View File

@ -417,7 +417,7 @@ class TestPyQgsMemoryProvider(unittest.TestCase, ProviderTestCase):
def testThreadSafetyWithIndex(self):
layer = QgsVectorLayer('Point?crs=epsg:4326&index=yes&field=pk:integer&field=cnt:int8&field=name:string(0)&field=name2:string(0)&field=num_char:string&key=pk',
'test', 'memory')
'test', 'memory')
provider = layer.dataProvider()
f = QgsFeature()

View File

@ -120,7 +120,7 @@ class TestLayoutBase(TestQgsPalLabeling):
paperw = width * 25.4 / dpi
paperh = height * 25.4 / dpi
page = QgsLayoutItemPage(self._c)
page.attemptResize(QgsLayoutSize(paperw,paperh))
page.attemptResize(QgsLayoutSize(paperw, paperh))
self._c.pageCollection().addPage(page)
# NOTE: do not use QgsLayoutItemMap(self._c, 0, 0, paperw, paperh) since
# it only takes integers as parameters and the composition will grow
@ -153,7 +153,7 @@ class TestLayoutBase(TestQgsPalLabeling):
QPainter.Antialiasing,
self._TestMapSettings.testFlag(QgsMapSettings.Antialiasing)
)
exporter=QgsLayoutExporter(self._c)
exporter = QgsLayoutExporter(self._c)
exporter.renderPage(p, 0)
p.end()