@@ -134,7 +134,7 @@ def test01c_kml(self):
134134 def test01d_errors (self ):
135135 "Testing the Error handlers."
136136 # string-based
137- print "\n BEGIN - expecting GEOS_ERROR; safe to ignore.\n "
137+ print ( "\n BEGIN - expecting GEOS_ERROR; safe to ignore.\n " )
138138 for err in self .geometries .errors :
139139 try :
140140 g = fromstr (err .wkt )
@@ -144,7 +144,7 @@ def test01d_errors(self):
144144 # Bad WKB
145145 self .assertRaises (GEOSException , GEOSGeometry , buffer ('0' ))
146146
147- print "\n END - expecting GEOS_ERROR; safe to ignore.\n "
147+ print ( "\n END - expecting GEOS_ERROR; safe to ignore.\n " )
148148
149149 class NotAGeometry (object ):
150150 pass
@@ -439,7 +439,7 @@ def test05a_polygons(self):
439439
440440 def test05b_multipolygons (self ):
441441 "Testing MultiPolygon objects."
442- print "\n BEGIN - expecting GEOS_NOTICE; safe to ignore.\n "
442+ print ( "\n BEGIN - expecting GEOS_NOTICE; safe to ignore.\n " )
443443 prev = fromstr ('POINT (0 0)' )
444444 for mp in self .geometries .multipolygons :
445445 mpoly = fromstr (mp .wkt )
@@ -458,7 +458,7 @@ def test05b_multipolygons(self):
458458 self .assertEqual (p .valid , True )
459459 self .assertEqual (mpoly .wkt , MultiPolygon (* tuple (poly .clone () for poly in mpoly )).wkt )
460460
461- print "\n END - expecting GEOS_NOTICE; safe to ignore.\n "
461+ print ( "\n END - expecting GEOS_NOTICE; safe to ignore.\n " )
462462
463463 def test06a_memory_hijinks (self ):
464464 "Testing Geometry __del__() on rings and polygons."
@@ -995,15 +995,15 @@ def test27_valid_reason(self):
995995 self .assertTrue (isinstance (g .valid_reason , basestring ))
996996 self .assertEqual (g .valid_reason , "Valid Geometry" )
997997
998- print "\n BEGIN - expecting GEOS_NOTICE; safe to ignore.\n "
998+ print ( "\n BEGIN - expecting GEOS_NOTICE; safe to ignore.\n " )
999999
10001000 g = GEOSGeometry ("LINESTRING(0 0, 0 0)" )
10011001
10021002 self .assertTrue (not g .valid )
10031003 self .assertTrue (isinstance (g .valid_reason , basestring ))
10041004 self .assertTrue (g .valid_reason .startswith ("Too few points in geometry component" ))
10051005
1006- print "\n END - expecting GEOS_NOTICE; safe to ignore.\n "
1006+ print ( "\n END - expecting GEOS_NOTICE; safe to ignore.\n " )
10071007
10081008 def test28_geos_version (self ):
10091009 "Testing the GEOS version regular expression."
0 commit comments