changeset 5865:dc3c0b894178

fix dictionary file reading crash under windows
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 15 Jun 2012 23:28:36 +0200
parents aaf543f558d9
children aba21f8db240
files MoinMoin/action/SpellCheck.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SpellCheck.py	Sat Jun 09 17:15:47 2012 +0200
+++ b/MoinMoin/action/SpellCheck.py	Fri Jun 15 23:28:36 2012 +0200
@@ -55,10 +55,10 @@
     request.clock.start('spellread')
     try:
         try:
-            f = codecs.open(filename, 'rt', config.charset)
+            f = codecs.open(filename, 'r', config.charset)
             lines = f.readlines()
         except UnicodeError:
-            f = codecs.open(filename, 'rt', 'iso-8859-1')
+            f = codecs.open(filename, 'r', 'iso-8859-1')
             lines = f.readlines()
     finally:
         f.close()