From 4a350e948aa21b25d74b618c8050755bb1b26d4c Mon Sep 17 00:00:00 2001 From: Ian Weller Date: Tue, 22 Dec 2009 02:16:09 -0600 Subject: [PATCH] Fix pagename/filename conversion problem --- src/mw/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mw/api.py b/src/mw/api.py index 8961f5d..c6958c2 100644 --- a/src/mw/api.py +++ b/src/mw/api.py @@ -58,11 +58,11 @@ class API(object): def pagename_to_filename(name): - name.replace(' ', '_') - name.replace('/', '!') + name = name.replace(' ', '_') + name = name.replace('/', '!') return name def filename_to_pagename(name): - name.replace('!', '/') - name.replace('_', ' ') + name = name.replace('!', '/') + name = name.replace('_', ' ') return name -- 2.39.5