From 7770e393e07a1e2912fd7d3e9e5cf3ee75e4d75e Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Mon, 2 Nov 2009 22:49:28 +0200 Subject: [PATCH] Fix subtle rstrip bug. --- scikits/image/_build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scikits/image/_build.py b/scikits/image/_build.py index d487a546..fc899e0a 100644 --- a/scikits/image/_build.py +++ b/scikits/image/_build.py @@ -20,7 +20,7 @@ def cython(pyx_files, working_path=''): else: for pyxfile in [os.path.join(working_path, f) for f in pyx_files]: # make a backup of the good c files - c_file = pyxfile.rstrip('pyx') + 'c' + c_file = pyxfile[:-4] + 'c' c_file_new = c_file + '.new' # run cython compiler