diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-12-17 15:40:10 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-12-17 15:40:10 -0500 |
commit | 65b1d1998f560c03c7cc204b0ee4f5c9c4f517e0 (patch) | |
tree | 2eea4da16c7a0d87da177f0c37fee3ad6394cf53 | |
parent | bc5457ce38af0543b971884cf11824c3fdc34248 (diff) | |
download | dimension-65b1d1998f560c03c7cc204b0ee4f5c9c4f517e0.tar.xz |
Allow one-element CSG operations.
-rw-r--r-- | libdimension-python/dimension.pyx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx index 1e79620..6a76974 100644 --- a/libdimension-python/dimension.pyx +++ b/libdimension-python/dimension.pyx @@ -1273,8 +1273,8 @@ cdef class Union(Object): Additionally, Union() accepts any arguments that Object() accepts. """ - if len(objects) < 2: - raise TypeError("expected a list of two or more Objects") + if len(objects) < 1: + raise TypeError("expected a list of one or more Objects") cdef dmnsn_array *array = dmnsn_new_array(sizeof(dmnsn_object *)) cdef dmnsn_object *o @@ -1302,8 +1302,8 @@ cdef class Intersection(Object): Additionally, Intersection() accepts any arguments that Object() accepts. """ - if len(objects) < 2: - raise TypeError("expected a list of two or more Objects") + if len(objects) < 1: + raise TypeError("expected a list of one or more Objects") cdef dmnsn_object *o @@ -1329,8 +1329,8 @@ cdef class Difference(Object): Additionally, Difference() accepts any arguments that Object() accepts. """ - if len(objects) < 2: - raise TypeError("expected a list of two or more Objects") + if len(objects) < 1: + raise TypeError("expected a list of one or more Objects") cdef dmnsn_object *o @@ -1356,8 +1356,8 @@ cdef class Merge(Object): Additionally, Merge() accepts any arguments that Object() accepts. """ - if len(objects) < 2: - raise TypeError("expected a list of two or more Objects") + if len(objects) < 1: + raise TypeError("expected a list of one or more Objects") cdef dmnsn_object *o |