summaryrefslogtreecommitdiff
path: root/Cython/Utils.py
diff options
context:
space:
mode:
authorMark Florisson <markflorisson88@gmail.com>2011-07-25 21:13:10 +0200
committerMark Florisson <markflorisson88@gmail.com>2011-09-30 14:55:17 +0100
commit83e7a363fcc757ebab94b544b0ac64c270e73e39 (patch)
tree4d032bf6fc912b739f07bbbd69f8ba28915107d2 /Cython/Utils.py
parentaad49345e18a162ab0caa332b5379729b76f90fe (diff)
downloadcython-83e7a363fcc757ebab94b544b0ac64c270e73e39.tar.gz
MemoryViewSlice indexing and object coercion + MemoryView indexing
Diffstat (limited to 'Cython/Utils.py')
-rw-r--r--Cython/Utils.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Cython/Utils.py b/Cython/Utils.py
index 5dc2d1282..a5dbea36a 100644
--- a/Cython/Utils.py
+++ b/Cython/Utils.py
@@ -4,6 +4,7 @@
#
import os, sys, re, codecs
+from Cython import Tempita
def replace_suffix(path, newsuf):
base, _ = os.path.splitext(path)
@@ -215,10 +216,3 @@ def long_literal(value):
if isinstance(value, basestring):
value = str_to_number(value)
return not -2**31 <= value < 2**31
-
-def none_or_sub(s, data):
- if s is None:
- return s
- else:
- return s % data
-