[PATCH] offlineimap.py: fix version number

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Dec 13 18:49:45 GMT 2010

On Mon, 13 Dec 2010 19:25:11 +0100, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> The release number information is hard coded. Here is a quick fix to update it
> to the last release.
> --- a/offlineimap.py
> +++ b/offlineimap.py
> @@ -20,4 +20,4 @@
>  from offlineimap import OfflineImap
>  offlineimap = OfflineImap()
> -offlineimap.startup('6.2.0')
> +offlineimap.startup('6.3.1')

Yep, it is hardcoded but not here. :-) 
It is in offlineimap.version.py, so that needs changing too.

This is just a check that offlineimap.py actually invokes the correct
version of the offlineimap module. If you change just this, you will
error out in OfflineImap().startup() in the first line.

Also, if you change this, make sure to also change the "offlineimap"
"binary" and not just offlineimap.py so you need to change it in 3

If we want to do away with that version check, I wouldn't mind.


More information about the OfflineIMAP-project mailing list