[frontpython] r55 committed - tweaking logging to better deal with non-ascii characters

1 view
Skip to first unread message

codesite...@google.com

unread,
Jan 7, 2010, 1:41:52 AM1/7/10
to frontpyth...@googlegroups.com
Revision: 55
Author: jon.christopher
Date: Wed Jan 6 22:41:30 2010
Log: tweaking logging to better deal with non-ascii characters

http://code.google.com/p/frontpython/source/detail?r=55

Modified:
/trunk/SDK/PyFR/Appliance.py
/trunk/SDK/PyFR/MenuController.py
/trunk/SDK/PyFR/Utilities.py

=======================================
--- /trunk/SDK/PyFR/Appliance.py Thu Dec 10 22:08:41 2009
+++ /trunk/SDK/PyFR/Appliance.py Wed Jan 6 22:41:30 2010
@@ -5,7 +5,7 @@
class Appliance( BRAppliance ):
# Logging.
def log(self,s):
- Foundation.NSLog( "%@: %@", self.__class__.__name__, str(s) )
+ Foundation.NSLog( u"%@: %@", self.__class__.__name__, s )

sanityCheck = False

=======================================
--- /trunk/SDK/PyFR/MenuController.py Thu Dec 10 22:08:41 2009
+++ /trunk/SDK/PyFR/MenuController.py Wed Jan 6 22:41:30 2010
@@ -8,7 +8,7 @@

import Foundation
def log(s):
- #Foundation.NSLog( "%s: %@", "PyFR", str(s) )
+ #Foundation.NSLog( u"%s: %@", "PyFR", s )
pass


=======================================
--- /trunk/SDK/PyFR/Utilities.py Thu Dec 10 22:08:41 2009
+++ /trunk/SDK/PyFR/Utilities.py Wed Jan 6 22:41:30 2010
@@ -22,7 +22,7 @@

# Logging.
def log(self, s):
- #Foundation.NSLog( "%@: %@", self.__class__.__name__, str(s) )
+ #Foundation.NSLog( u"%@: %@", self.__class__.__name__, s )
pass

def firedMethod_(self, senders):

Reply all
Reply to author
Forward
0 new messages