allow to run under python3 without special env
Github-Fix: #81 https://github.com/OfflineIMAP/offlineimap/issues/81 Signed-off-by: Łukasz Żarnowiecki <dolohow@outlook.com> Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
56f473326a
commit
1894a8f871
@ -20,16 +20,6 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
if not 'DEVELOPING_OFFLINEIMAP_PYTHON3_SUPPORT' in os.environ:
|
|
||||||
if sys.version_info[0] > 2:
|
|
||||||
sys.stderr.write("""IIMAPS!
|
|
||||||
|
|
||||||
Sorry, OfflineIMAP currently doesn't support Python higher than 2.x.
|
|
||||||
We're doing our best to bring in support for 3.x really soon. You can
|
|
||||||
also join us at https://github.com/OfflineIMAP/offlineimap/ and help.
|
|
||||||
""")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
from offlineimap import OfflineImap
|
from offlineimap import OfflineImap
|
||||||
|
|
||||||
oi = OfflineImap()
|
oi = OfflineImap()
|
||||||
|
Loading…
Reference in New Issue
Block a user