Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/fancyopts.py @ 1541:bf4e7ef08741
fixed some stuff pychecker shows, marked unclear/wrong stuff with XXX
author | twaldmann@thinkmo.de |
---|---|
date | Mon, 14 Nov 2005 03:59:35 +0200 |
parents | 34be48b4ca85 |
children | eb0b4a2d70a9 |
comparison
equal
deleted
inserted
replaced
1540:8ca9f5b17257 | 1541:bf4e7ef08741 |
---|---|
1 import getopt | 1 import getopt |
2 | 2 |
3 def fancyopts(args, options, state): | 3 def fancyopts(args, options, state): |
4 long=[] | 4 long = [] |
5 short='' | 5 short = '' |
6 map={} | 6 map = {} |
7 dt={} | 7 dt = {} |
8 | 8 |
9 for s, l, d, c in options: | 9 for s, l, d, c in options: |
10 pl = l.replace('-', '_') | 10 pl = l.replace('-', '_') |
11 map['-'+s] = map['--'+l] = pl | 11 map['-'+s] = map['--'+l] = pl |
12 state[pl] = d | 12 state[pl] = d |