1
0

replace numeric constants with enums

This commit is contained in:
thurask
2017-10-14 19:51:38 -04:00
parent 086240ffa2
commit 69315d8fe2
6 changed files with 33 additions and 31 deletions
+4 -4
View File
@@ -13,11 +13,11 @@ tcllib.make_escapes_work()
fc = tcllib.FotaCheck()
fc.serid = "3531510"
fc.fv = "AAA000"
fc.mode = fc.MODE_FULL
fc.mode = fc.MODE.FULL
# CLTP = 10 (only show actual updates or HTTP 206) / 2010 (always show latest version for MODE_FULL)
#fc.cltp = 10
fc.cltp = 2010
# CLTP = 10 (only show actual updates or HTTP 206) / 2010 (always show latest version for MODE.FULL)
#fc.cltp = fc.CLTP.MOBILE
fc.cltp = fc.CLTP.DESKTOP
dp = tcllib.DefaultParser(__file__)
dp.add_argument("tocheck", nargs="?", default=None)