set 'oldver' and 'newver' to none if not provided

This commit is contained in:
lilydjwg 2014-01-08 21:18:02 +08:00
parent 5dd8a4df68
commit 653324ae6f

View file

@ -60,6 +60,7 @@ def write_verfile(file, versions):
class Source:
started = False
tasks = 0
oldver = newver = None
def __init__(self, file):
self.config = config = configparser.ConfigParser(
dict_type=dict, allow_no_value=True