changeset 1605:c4f2db04084b

use 'is' for object identity checking
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 08 Oct 2006 17:50:03 +0200
parents b2322cdabd8a
children ae56d79ae076
files MoinMoin/Page.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/Page.py	Tue Oct 03 15:32:55 2006 +0200
+++ b/MoinMoin/Page.py	Sun Oct 08 17:50:03 2006 +0200
@@ -1312,7 +1312,7 @@
 
         # restore old formatter (hopefully we dont throw any exception
         # that is catched again)
-        if old_formatter == no_formatter:
+        if old_formatter is no_formatter:
             del request.formatter
         else:
             request.formatter = old_formatter