change the default oldversion to trunk; prevent a crash on files with 0 lines.

This commit is contained in:
Patrick Parker 2007-09-09 23:24:29 +00:00
parent 3fabe86aa9
commit bc4e1d8f3b

View file

@ -744,6 +744,8 @@ def is_map(filename):
has_map_content = len(lines) > 1
except OSError:
has_map_content = False
except IndexError:
has_map_content = False
return has_map_content
class maptransform_error:
@ -970,7 +972,7 @@ if __name__ == '__main__':
except getopt.GetoptError:
help()
sys.exit(1)
oldversion = 'older'
oldversion = 'trunk'
dryrun = False
future = False
verbose = 0