# HG changeset patch # User Thomas Waldmann # Date 1398714923 -7200 # Node ID 1306560f158eb7883066d32c9f42d05e9a235e9f # Parent ca4a1bfdf2db3753d3f50aec5147bad24b4c7c55 remove print statements from user attr caching code fixes some UnicodeCode crashes, e.g. in "forgot password" functionality, maybe also elsewhere diff -r ca4a1bfdf2db -r 1306560f158e MoinMoin/user.py --- a/MoinMoin/user.py Sat Mar 01 19:07:03 2014 +0100 +++ b/MoinMoin/user.py Mon Apr 28 21:55:23 2014 +0200 @@ -1038,7 +1038,6 @@ attr2id = cache[attrname] for key, value in attr2id.items(): if value == userid: - print "deleting old cached attr %s -> %s" % (key, value) del attr2id[key] # then, if user is valid, update with the current attr values: @@ -1048,7 +1047,6 @@ value = getattr(self, attrname) if value: # we do not store empty values, likely not unique - print "setting new cached attr %s -> %r" % (attrname, value) attr2id = cache[attrname] if isinstance(value, list): for val in value: