gdritter repos lib-static / c691522
Fixed problem with json-dict opening json files Getty Ritter 9 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Collapse all Expand all
88 if not arg: return None
99 if arg[0] == '@':
1010 try:
11 with open(arg[0]) as f: return coerce(f.read())
11 with open(arg[1:]) as f: return coerce(f.read())
1212 except: pass
1313 if arg == '-': return coerce(sys.stdin.read())
1414 try: return yaml.loads(arg)