From 89bcea86393caf6987e10665199d3effcd482f33 Mon Sep 17 00:00:00 2001 From: Johann Visagie Date: Mon, 3 Sep 2001 10:45:18 +0000 Subject: Add py-gato 0.96.g, a Python-based toolbox to visualise algorithms on graphs. --- math/py-gato/files/patch-GatoUtil.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 math/py-gato/files/patch-GatoUtil.py (limited to 'math/py-gato/files/patch-GatoUtil.py') diff --git a/math/py-gato/files/patch-GatoUtil.py b/math/py-gato/files/patch-GatoUtil.py new file mode 100644 index 000000000000..7cdcf9b766a1 --- /dev/null +++ b/math/py-gato/files/patch-GatoUtil.py @@ -0,0 +1,13 @@ +--- GatoUtil.py.orig Wed May 16 13:16:56 2001 ++++ GatoUtil.py Mon Sep 3 12:14:42 2001 +@@ -40,8 +40,8 @@ + + def extension(pathAndFile): + """ Return ext if path/filename.ext is given """ +- import regsub +- return regsub.split(stripPath(pathAndFile),"\.")[1] ++ import re ++ return re.split("\.", stripPath(pathAndFile))[1] + + def stripPath(pathAndFile): + """ Return filename.ext if path/filename.ext is given """ -- cgit v1.2.3