Skip to content
Permalink
Browse files

move new composer tests to pyqt wrappers (followup 7a8a541 and f413046)

  • Loading branch information
jef-n committed Apr 1, 2016
1 parent aef26c9 commit 4f6c271490522cf85484f3dc44fbc3fda7d1130e
@@ -6,12 +6,12 @@ class FixPrintWithImport(FixPrintWithImportOrig):

def match(self, node):
isPrint = super(FixPrintWithImport, self).match(node)
if isPrint and
len(node.children) == 2 and \
isinstance(node.children[0], Leaf) and \
isinstance(node.children[1], Node) and node.children[1].type == syms.atom and \
isinstance(node.children[1].children[0], Leaf) and node.children[1].children[0].value == '(' and \
isinstance(node.children[1].children[-1], Leaf) and node.children[1].children[-1].value == ')':
if isPrint and \
len(node.children) == 2 and \
isinstance(node.children[0], Leaf) and \
isinstance(node.children[1], Node) and node.children[1].type == syms.atom and \
isinstance(node.children[1].children[0], Leaf) and node.children[1].children[0].value == '(' and \
isinstance(node.children[1].children[-1], Leaf) and node.children[1].children[-1].value == ')':
return False

return ok
@@ -14,9 +14,9 @@

import qgis

from PyQt4.QtGui import QColor
from PyQt4.QtGui import QPolygonF
from PyQt4.QtCore import QPointF
from PyQt.QtGui import QColor
from PyQt.QtGui import QPolygonF
from PyQt.QtCore import QPointF

from qgis.core import (QgsComposerPolygon,
QgsComposerItem,
@@ -14,9 +14,9 @@

import qgis

from PyQt4.QtGui import QColor
from PyQt4.QtGui import QPolygonF
from PyQt4.QtCore import QPointF
from PyQt.QtGui import QColor
from PyQt.QtGui import QPolygonF
from PyQt.QtCore import QPointF

from qgis.core import (QgsComposerPolyline,
QgsComposerItem,

0 comments on commit 4f6c271

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