[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue-common/src/apps GDebug.py
From: |
Jan Ischebeck |
Subject: |
gnue-common/src/apps GDebug.py |
Date: |
Tue, 07 Oct 2003 07:41:15 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue-common
Branch:
Changes by: Jan Ischebeck <address@hidden> 03/10/07 07:41:15
Modified files:
src/apps : GDebug.py
Log message:
Allow unicode encoded Debug messages
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/apps/GDebug.py.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
Patches:
Index: gnue-common/src/apps/GDebug.py
diff -c gnue-common/src/apps/GDebug.py:1.9 gnue-common/src/apps/GDebug.py:1.10
*** gnue-common/src/apps/GDebug.py:1.9 Wed Jan 1 19:45:41 2003
--- gnue-common/src/apps/GDebug.py Tue Oct 7 07:41:15 2003
***************
*** 99,106 ****
pass
def _printMesg(level, message, dropToDebugger=0):
! if ( level <= _DEBUG_LEVEL ):
global _fh, _DEBUGGER
caller = extract_stack()[-2]
try:
if caller[0][-3:] == '.py':
--- 99,108 ----
pass
def _printMesg(level, message, dropToDebugger=0):
! if ( level <= _DEBUG_LEVEL ):
global _fh, _DEBUGGER
+ if type(message)==type(u''):
+ message=message.encode('utf-8')
caller = extract_stack()[-2]
try:
if caller[0][-3:] == '.py':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue-common/src/apps GDebug.py,
Jan Ischebeck <=