From ece902a4cf5b7cdd702fafbe8df894ea18bc506b Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx <zooko@zooko.com> Date: Mon, 21 Apr 2008 06:37:13 -0700 Subject: [PATCH] setup: windows: make sub-ver.py treat None as 0 --- misc/sub-ver.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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), } -- 2.45.2