remove some unneeded includes
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
		 Sebastian Spaeth
					Sebastian Spaeth
				
			
				
					committed by
					
						 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
			
				
	
			
			
			 Nicolas Sebrecht
						Nicolas Sebrecht
					
				
			
						parent
						
							1c106a4ce9
						
					
				
				
					commit
					c20d655ea3
				
			| @@ -17,13 +17,12 @@ | |||||||
| #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA | #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA | ||||||
|  |  | ||||||
| import imaplib | import imaplib | ||||||
| from offlineimap import imapserver, repository, folder, mbnames, threadutil, version, syncmaster, accounts | from offlineimap import imapserver, threadutil, version, syncmaster, accounts | ||||||
| from offlineimap.localeval import LocalEval | from offlineimap.localeval import LocalEval | ||||||
| from offlineimap.threadutil import InstanceLimitedThread, ExitNotifyThread | from offlineimap.threadutil import InstanceLimitedThread, ExitNotifyThread | ||||||
| from offlineimap.ui import UIBase | import offlineimap.ui | ||||||
| import re, os, os.path, offlineimap, sys | import os, sys | ||||||
| from offlineimap.CustomConfig import CustomConfigParser | from offlineimap.CustomConfig import CustomConfigParser | ||||||
| from threading import * |  | ||||||
| import threading, socket | import threading, socket | ||||||
| from getopt import getopt | from getopt import getopt | ||||||
| import signal | import signal | ||||||
| @@ -97,7 +96,7 @@ class OfflineImap: | |||||||
|             config.set(section, key, value) |             config.set(section, key, value) | ||||||
|      |      | ||||||
|         ui = offlineimap.ui.detector.findUI(config, options.get('-u')) |         ui = offlineimap.ui.detector.findUI(config, options.get('-u')) | ||||||
|         UIBase.setglobalui(ui) |         offlineimap.ui.UIBase.setglobalui(ui) | ||||||
|      |      | ||||||
|         if options.has_key('-l'): |         if options.has_key('-l'): | ||||||
|             ui.setlogfd(open(options['-l'], 'wt')) |             ui.setlogfd(open(options['-l'], 'wt')) | ||||||
| @@ -140,7 +139,9 @@ class OfflineImap: | |||||||
|      |      | ||||||
|         def sigterm_handler(self, signum, frame): |         def sigterm_handler(self, signum, frame): | ||||||
|             # die immediately |             # die immediately | ||||||
|  |             ui = BaseUI.getglobalui() | ||||||
|             ui.terminate(errormsg="terminating...") |             ui.terminate(errormsg="terminating...") | ||||||
|  |  | ||||||
|         signal.signal(signal.SIGTERM,sigterm_handler) |         signal.signal(signal.SIGTERM,sigterm_handler) | ||||||
|      |      | ||||||
|         try: |         try: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user