Commit 33f60964 authored by 's avatar

Added indentation fix in InstanceDict.__getitem__

parent 700031c1
......@@ -85,8 +85,8 @@
__doc__='''Python implementations of document template some features
$Id: pDocumentTemplate.py,v 1.21 1998/12/04 20:15:29 jim Exp $'''
__version__='$Revision: 1.21 $'[11:-2]
$Id: pDocumentTemplate.py,v 1.22 1999/02/08 15:52:50 brian Exp $'''
__version__='$Revision: 1.22 $'[11:-2]
import string, sys, types
from string import join
......@@ -144,7 +144,7 @@ class InstanceDict:
if key[:1]=='_':
if key != '__str__':
raise KeyError, key # Don't divuldge private data
r=str(inst)
r=str(inst)
else:
try: r=getattr(inst,key)
except AttributeError: raise KeyError, key
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment