diff options
author | Mark Florisson <markflorisson88@gmail.com> | 2011-07-25 21:13:10 +0200 |
---|---|---|
committer | Mark Florisson <markflorisson88@gmail.com> | 2011-09-30 14:55:17 +0100 |
commit | 83e7a363fcc757ebab94b544b0ac64c270e73e39 (patch) | |
tree | 4d032bf6fc912b739f07bbbd69f8ba28915107d2 /Cython/Utils.py | |
parent | aad49345e18a162ab0caa332b5379729b76f90fe (diff) | |
download | cython-83e7a363fcc757ebab94b544b0ac64c270e73e39.tar.gz |
MemoryViewSlice indexing and object coercion + MemoryView indexing
Diffstat (limited to 'Cython/Utils.py')
-rw-r--r-- | Cython/Utils.py | 8 |
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 - |