projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c375b15
)
setup: windows: make sub-ver.py treat None as 0
author
Zooko O'Whielacronx
<zooko@zooko.com>
Mon, 21 Apr 2008 13:37:13 +0000
(06:37 -0700)
committer
Zooko O'Whielacronx
<zooko@zooko.com>
Mon, 21 Apr 2008 13:37:13 +0000
(06:37 -0700)
misc/sub-ver.py
patch
|
blob
|
history
diff --git
a/misc/sub-ver.py
b/misc/sub-ver.py
index 3bee7990650927ea2a44663b2daa9ad912f3962b..6c54960484fd9edfc2e8bca077f7837ba71102eb 100644
(file)
--- 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),
}