File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ class FixPrintWithImport(FixPrintWithImportOrig):
6
6
7
7
def match (self , node ):
8
8
isPrint = super (FixPrintWithImport , self ).match (node )
9
- if isPrint and
10
- len (node .children ) == 2 and \
11
- isinstance (node .children [0 ], Leaf ) and \
12
- isinstance (node .children [1 ], Node ) and node .children [1 ].type == syms .atom and \
13
- isinstance (node .children [1 ].children [0 ], Leaf ) and node .children [1 ].children [0 ].value == '(' and \
14
- isinstance (node .children [1 ].children [- 1 ], Leaf ) and node .children [1 ].children [- 1 ].value == ')' :
9
+ if isPrint and \
10
+ len (node .children ) == 2 and \
11
+ isinstance (node .children [0 ], Leaf ) and \
12
+ isinstance (node .children [1 ], Node ) and node .children [1 ].type == syms .atom and \
13
+ isinstance (node .children [1 ].children [0 ], Leaf ) and node .children [1 ].children [0 ].value == '(' and \
14
+ isinstance (node .children [1 ].children [- 1 ], Leaf ) and node .children [1 ].children [- 1 ].value == ')' :
15
15
return False
16
16
17
17
return ok
Original file line number Diff line number Diff line change 14
14
15
15
import qgis
16
16
17
- from PyQt4 .QtGui import QColor
18
- from PyQt4 .QtGui import QPolygonF
19
- from PyQt4 .QtCore import QPointF
17
+ from PyQt .QtGui import QColor
18
+ from PyQt .QtGui import QPolygonF
19
+ from PyQt .QtCore import QPointF
20
20
21
21
from qgis .core import (QgsComposerPolygon ,
22
22
QgsComposerItem ,
Original file line number Diff line number Diff line change 14
14
15
15
import qgis
16
16
17
- from PyQt4 .QtGui import QColor
18
- from PyQt4 .QtGui import QPolygonF
19
- from PyQt4 .QtCore import QPointF
17
+ from PyQt .QtGui import QColor
18
+ from PyQt .QtGui import QPolygonF
19
+ from PyQt .QtCore import QPointF
20
20
21
21
from qgis .core import (QgsComposerPolyline ,
22
22
QgsComposerItem ,
You can’t perform that action at this time.
0 commit comments