[KoCo-CVS] [Commit] KoreanCodecs/korean/python hangul.py
Brought to you by:
perky
From: Chang <pe...@us...> - 2002-04-26 07:47:00
|
perky 02/04/26 00:46:59 Modified: korean/python hangul.py Log: - minor style fix : expand tab to 4 spaces Revision Changes Path 1.8 +20 -20 KoreanCodecs/korean/python/hangul.py Index: hangul.py =================================================================== RCS file: /cvsroot/koco/KoreanCodecs/korean/python/hangul.py,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- hangul.py 26 Apr 2002 07:29:43 -0000 1.7 +++ hangul.py 26 Apr 2002 07:46:59 -0000 1.8 @@ -15,7 +15,7 @@ # Conjoining Jamo Behavior: # http://www.unicode.org/unicode/uni2book/ch03.pdf (section 3.11) # -# $Id: hangul.py,v 1.7 2002/04/26 07:29:43 perky Exp $ +# $Id: hangul.py,v 1.8 2002/04/26 07:46:59 perky Exp $ # class UnicodeHangulError(Exception): @@ -212,35 +212,35 @@ # Iterator Emulator for ancient versions before 2.1 try: - iter + iter except: - class iter: - def __init__(self, obj): - self.obj = obj - self.ptr = 0 - def next(self): - try: - return self.obj[self.ptr] - finally: - self.ptr += 1 + class iter: + def __init__(self, obj): + self.obj = obj + self.ptr = 0 + def next(self): + try: + return self.obj[self.ptr] + finally: + self.ptr += 1 # Nested scope lambda emulation for versions before 2.2 import sys if sys.hexversion < '0x2020000': - class plambda: - def __init__(self, obj): - self.obj = obj - def __call__(self): - return self.obj + class plambda: + def __init__(self, obj): + self.obj = obj + def __call__(self): + return self.obj else: - plambda = None + plambda = None del sys def format(fmtstr, *args, **kwargs): if kwargs: - argget = lambda:kwargs - if plambda: - argget = plambda(kwargs) + argget = lambda:kwargs + if plambda: + argget = plambda(kwargs) else: argget = iter(args).next |