/head: changeset 120

Cleaned up imports
This commit is contained in:
jgoerzen 2002-07-16 00:40:43 +01:00
parent 07c56817c1
commit f35641b53f
4 changed files with 14 additions and 4 deletions

View File

@ -1,6 +1,7 @@
offlineimap (3.0.1) unstable; urgency=low offlineimap (3.0.1) unstable; urgency=low
* Detabified the source. * Detabified the source.
* Added UI list to the manpage.
-- John Goerzen <jgoerzen@complete.org> Fri, 12 Jul 2002 07:28:24 -0500 -- John Goerzen <jgoerzen@complete.org> Fri, 12 Jul 2002 07:28:24 -0500

View File

@ -248,6 +248,13 @@ with
will be forced to be used, even if its will be forced to be used, even if its
.B isuable() .B isuable()
method states that it cannot be. Use this option with care. method states that it cannot be. Use this option with care.
.IP
The pre-defined options are
.B Tk.TKUI
(a graphical interface)
and
.B TTY.TTYUI
(a text-mode interface).
.\".TP .\".TP
.\".B \-v, \-\-version .\".B \-v, \-\-version
.\"Show version of program. .\"Show version of program.

View File

@ -17,14 +17,16 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
import TTY, UIBase import UIBase
availableUIs = {'TTY': TTY, 'UIBase': UIBase} try:
import TTY
except ImportError:
pass
try: try:
import Tkinter import Tkinter
except ImportError: except ImportError:
pass pass
else: else:
import Tk import Tk
availableUIs['Tk'] = Tk
import detector import detector

View File

@ -1,5 +1,5 @@
productname = 'OfflineIMAP' productname = 'OfflineIMAP'
versionstr = "3.0.0" versionstr = "3.0.1"
versionlist = versionstr.split(".") versionlist = versionstr.split(".")
major = versionlist[0] major = versionlist[0]