From: Zooko O'Whielacronx Date: Mon, 21 Apr 2008 13:37:13 +0000 (-0700) Subject: setup: windows: make sub-ver.py treat None as 0 X-Git-Tag: allmydata-tahoe-1.1.0~212 X-Git-Url: https://git.rkrishnan.org/components/provisioning?a=commitdiff_plain;h=ece902a4cf5b7cdd702fafbe8df894ea18bc506b;p=tahoe-lafs%2Ftahoe-lafs.git setup: windows: make sub-ver.py treat None as 0 --- diff --git a/misc/sub-ver.py b/misc/sub-ver.py index 3bee7990..6c549604 100644 --- a/misc/sub-ver.py +++ b/misc/sub-ver.py @@ -13,11 +13,11 @@ else: raise ValueError('must provide 0 or 1 argument (stdin, or filename)') vern = { - 'major': v.major, - 'minor': v.minor, - 'point': v.micro, - 'micro': v.micro, - 'revision' : v.revision, + 'major': v.major or 0, + 'minor': v.minor or 0, + 'point': v.micro or 0, + 'micro': v.micro or 0, + 'revision' : v.revision or 0, 'build': str(v), }