Skip to content

Commit 1d2568a

Browse files
authored
Merge pull request #512 from jameslamb/unused_deps
Remove some unused imports
2 parents 4cfe303 + d512cf0 commit 1d2568a

10 files changed

Lines changed: 7 additions & 13 deletions

File tree

shapely/geometry/linestring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if sys.version_info[0] < 3:
77
range = xrange
88

9-
from ctypes import c_double, cast, POINTER
9+
from ctypes import c_double
1010

1111
from shapely.geos import lgeos, TopologicalError
1212
from shapely.geometry.base import (

shapely/geometry/multilinestring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if sys.version_info[0] < 3:
77
range = xrange
88

9-
from ctypes import c_double, c_void_p, cast, POINTER
9+
from ctypes import c_void_p, cast
1010

1111
from shapely.geos import lgeos
1212
from shapely.geometry.base import BaseMultipartGeometry, geos_geom_from_py

shapely/geometry/multipoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
if sys.version_info[0] < 3:
77
range = xrange
88

9-
from ctypes import byref, c_double, c_void_p, cast, POINTER
10-
from ctypes import ArgumentError
9+
from ctypes import byref, c_double, c_void_p, cast
1110

1211
from shapely.geos import lgeos
1312
from shapely.geometry.base import (

shapely/geometry/point.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"""
33

44
from ctypes import c_double
5-
from ctypes import cast, POINTER
65

76
from shapely.errors import DimensionError
87
from shapely.geos import lgeos

shapely/geometry/polygon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
if sys.version_info[0] < 3:
77
range = xrange
88

9-
from ctypes import c_double, c_void_p, cast, POINTER
10-
from ctypes import ArgumentError
9+
from ctypes import c_void_p, cast, POINTER
1110
import weakref
1211

1312
from shapely.algorithms.cga import signed_area

shapely/geometry/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Proxy for coordinates stored outside Shapely geometries
22
"""
33

4-
from shapely.geometry.base import deserialize_wkb, EMPTY
4+
from shapely.geometry.base import EMPTY
55
from shapely.geos import lgeos
66

77

shapely/iterops.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Iterative forms of operations
33
"""
44

5-
from shapely.geos import PredicateError
65
from shapely.topology import Delegating
76

87

shapely/ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from shapely.geos import lgeos
1414
from shapely.geometry.base import geom_factory, BaseGeometry
1515
from shapely.geometry import asShape, asLineString, asMultiLineString, Point, MultiPoint,\
16-
LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection
16+
LineString, MultiLineString, Polygon, GeometryCollection
1717
from shapely.algorithms.polylabel import polylabel
1818

1919
__all__ = ['cascaded_union', 'linemerge', 'operator', 'polygonize',

shapely/predicates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Support for GEOS spatial predicates
33
"""
44

5-
from shapely.geos import PredicateError, TopologicalError
5+
from shapely.geos import PredicateError
66
from shapely.topology import Delegating
77

88

shapely/validation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# TODO: allow for implementations using other than GEOS
22

3-
import sys
4-
53
from shapely.geos import lgeos
64

75
def explain_validity(ob):

0 commit comments

Comments
 (0)