summaryrefslogtreecommitdiff
path: root/Cython/Utils.py
diff options
context:
space:
mode:
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
-