Mercurial > public > mercurial-scm > hg
comparison mercurial/fancyopts.py @ 3673:eb0b4a2d70a9
white space and line break cleanups
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 17 Nov 2006 08:06:54 +0100 |
parents | bf4e7ef08741 |
children | 86c1d1d35593 |
comparison
equal
deleted
inserted
replaced
3672:e8730b5b8a32 | 3673:eb0b4a2d70a9 |
---|---|
18 if l: long.append(l) | 18 if l: long.append(l) |
19 | 19 |
20 opts, args = getopt.getopt(args, short, long) | 20 opts, args = getopt.getopt(args, short, long) |
21 | 21 |
22 for opt, arg in opts: | 22 for opt, arg in opts: |
23 if dt[map[opt]] is type(fancyopts): state[map[opt]](state,map[opt],arg) | 23 if dt[map[opt]] is type(fancyopts): state[map[opt]](state, map[opt], arg) |
24 elif dt[map[opt]] is type(1): state[map[opt]] = int(arg) | 24 elif dt[map[opt]] is type(1): state[map[opt]] = int(arg) |
25 elif dt[map[opt]] is type(''): state[map[opt]] = arg | 25 elif dt[map[opt]] is type(''): state[map[opt]] = arg |
26 elif dt[map[opt]] is type([]): state[map[opt]].append(arg) | 26 elif dt[map[opt]] is type([]): state[map[opt]].append(arg) |
27 elif dt[map[opt]] is type(None): state[map[opt]] = 1 | 27 elif dt[map[opt]] is type(None): state[map[opt]] = 1 |
28 | 28 |