summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pyx
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-06-16 00:34:08 -0600
committerTavian Barnes <tavianator@gmail.com>2011-06-16 00:34:08 -0600
commit7fb247e17863bf550689be8198b2dbba2773356d (patch)
tree5ef130e6ec46686e96e2a11cfebed8ca6b6a0dd3 /libdimension-python/dimension.pyx
parent2d33c87a6357fe62cc88b2c2b2815f4604294ab9 (diff)
downloaddimension-7fb247e17863bf550689be8198b2dbba2773356d.tar.xz
More slight style fixes.
Diffstat (limited to 'libdimension-python/dimension.pyx')
-rw-r--r--libdimension-python/dimension.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension-python/dimension.pyx b/libdimension-python/dimension.pyx
index b19db18..1c78041 100644
--- a/libdimension-python/dimension.pyx
+++ b/libdimension-python/dimension.pyx
@@ -101,7 +101,7 @@ cdef class Vector:
if len(args) == 1:
if isinstance(args[0], Vector):
self._v = (<Vector>args[0])._v
- elif hasattr(args[0], '__iter__'): # Faster than try: ... except:
+ elif hasattr(args[0], "__iter__"): # Faster than try: ... except:
self._real_init(*args[0])
elif args[0] == 0:
self._v = dmnsn_zero
@@ -324,7 +324,7 @@ cdef class Color:
if len(args) == 1:
if isinstance(args[0], Color):
self._sRGB = (<Color>args[0])._sRGB
- elif hasattr(args[0], '__iter__'):
+ elif hasattr(args[0], "__iter__"):
self._real_init(*args[0])
else:
self._sRGB = dmnsn_color_mul(args[0], dmnsn_white)
@@ -1303,14 +1303,14 @@ cdef class Scene:
"""The Timer for building the bounding hierarchy."""
def __get__(self):
if self._scene.bounding_timer == NULL:
- raise RuntimeError('scene has not been rendered yet')
+ raise RuntimeError("scene has not been rendered yet")
return _Timer(self._scene.bounding_timer)
property render_timer:
"""The Timer for the actual render."""
def __get__(self):
if self._scene.render_timer == NULL:
- raise RuntimeError('scene has not been rendered yet')
+ raise RuntimeError("scene has not been rendered yet")
return _Timer(self._scene.render_timer)