[KoCo-CVS] [Commit] KoreanCodecs/korean/python hangul.py
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-25 21:13:49
|
perky 02/04/25 14:13:44 Modified: korean/python hangul.py Log: - Change format argument passing to *args, **kwargs form - Split unittests into CExtension and PurePython Revision Changes Path 1.6 +5 -5 KoreanCodecs/korean/python/hangul.py Index: hangul.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/korean/python/hangul.py,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- hangul.py 25 Apr 2002 05:01:06 -0000 1.5 +++ hangul.py 25 Apr 2002 21:13:44 -0000 1.6 @@ -15,7 +15,7 @@ # Conjoining Jamo Behavior: # http://www.unicode.org/unicode/uni2book/ch03.pdf (section 3.11) # -# $Id: hangul.py,v 1.5 2002/04/25 05:01:06 perky Exp $ +# $Id: hangul.py,v 1.6 2002/04/25 21:13:44 perky Exp $ # class UnicodeHangulError(Exception): @@ -210,11 +210,11 @@ else: return 0, c in u'013678.bklmnptMN' -def format(fmtstr, args): - if not isinstance(args, dict): - argget = iter(args).next +def format(fmtstr, *args, **kwargs): + if kwargs: + argget = lambda:kwargs else: - argget = lambda:args + argget = iter(args).next obuff = [] ncur = escape = fmtinpth = 0 |