/Tools/versioncheck/_checkversion.py

http://unladen-swallow.googlecode.com/ · Python · 16 lines · 11 code · 4 blank · 1 comment · 2 complexity · 7db69cfc4804de1483e9bcb529e98891 MD5 · raw file

  1. """This file (which is sourced, not imported) checks the version of the
  2. "versioncheck" package. It is also an example of how to format your own
  3. _checkversion.py file"""
  4. import pyversioncheck
  5. _PACKAGE="versioncheck"
  6. _VERSION="1.0"
  7. _URL="http://www.cwi.nl/~jack/versioncheck/curversion.txt"
  8. try:
  9. _myverbose=VERBOSE
  10. except NameError:
  11. _myverbose=1
  12. pyversioncheck.versioncheck(_PACKAGE, _URL, _VERSION, verbose=_myverbose)