- commit
- d2cd8c9fc8197b9d09b86f50c29f5ebcd66ca257
- parent
- 52d0699f85563247d0c30a6dd0838420c7003b6c
- Author
- Tobias Bengfort <tobias.bengfort@gmx.net>
- Date
- 2015-04-11 06:51
small fixes
Diffstat
| M | cctool.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/cctool.py b/cctool.py
@@ -291,7 +291,7 @@ class LDIF(Format): 291 291 yield MultiDict(entry) 292 292 293 293 @classmethod294 -1 def dump(cls, fh):-1 294 def dump(cls, data, fh): 295 295 if isinstance(ldif, Exception): 296 296 raise ldif 297 297 raise NotImplementedError @@ -412,7 +412,7 @@ def main(): 412 412 if args.sort is not None: 413 413 data = sorted(data, key=lambda x: x[args.sort]) 414 414415 -1 outfile = sys.stdout if args.output is None else open(args.output)-1 415 outfile = sys.stdout if args.output is None else open(args.output, 'w') 416 416 try: 417 417 outformats[args.outformat]().dump(data, outfile) 418 418 except Exception as e: