comparison cmd2.py @ 208:f10bd1f0c7e3

case changes in parameters
author catherine@Elli.myhome.westell.com
date Mon, 09 Mar 2009 20:48:20 -0400
parents a3bec7704e65
children 6dc79bf15fc6
comparison
equal deleted inserted replaced
207:a3bec7704e65 208:f10bd1f0c7e3
197 exc.loc = loc 197 exc.loc = loc
198 exc.pstr = instring 198 exc.pstr = instring
199 raise exc 199 raise exc
200 200
201 def replace_with_file_contents(fname): 201 def replace_with_file_contents(fname):
202 import pdb; pdb.set_trace()
203 if fname: 202 if fname:
204 try: 203 try:
205 result = open(os.path.expanduser(fname[0])).read() 204 result = open(os.path.expanduser(fname[0])).read()
206 except IOError: 205 except IOError:
207 result = '< %s' % fname[0] # wasn't a file after all 206 result = '< %s' % fname[0] # wasn't a file after all