@@ -48,11 +48,7 @@ def drawRects(self, rects, rectCount=None):
48
48
if device is None :
49
49
return
50
50
if device .mode () != QwtNullPaintDevice .NormalMode :
51
- try :
52
- QPaintEngine .drawRects (self , rects , rectCount )
53
- except TypeError :
54
- # PyQt <=4.9
55
- QPaintEngine .drawRects (self , rects )
51
+ QPaintEngine .drawRects (self , rects , rectCount )
56
52
return
57
53
device .drawRects (rects , rectCount )
58
54
@@ -63,11 +59,7 @@ def drawLines(self, lines, lineCount=None):
63
59
if device is None :
64
60
return
65
61
if device .mode () != QwtNullPaintDevice .NormalMode and QT_API .startswith ("pyqt" ):
66
- try :
67
- QPaintEngine .drawLines (lines , lineCount )
68
- except TypeError :
69
- # PyQt <=4.9
70
- QPaintEngine .drawLines (self , lines )
62
+ QPaintEngine .drawLines (lines , lineCount )
71
63
return
72
64
device .drawLines (lines , lineCount )
73
65
@@ -93,11 +85,7 @@ def drawPoints(self, points, pointCount=None):
93
85
if device is None :
94
86
return
95
87
if device .mode () != QwtNullPaintDevice .NormalMode :
96
- try :
97
- QPaintEngine .drawPoints (points , pointCount )
98
- except TypeError :
99
- # PyQt <=4.9
100
- QPaintEngine .drawPoints (self , points )
88
+ QPaintEngine .drawPoints (points , pointCount )
101
89
return
102
90
device .drawPoints (points , pointCount )
103
91
0 commit comments