six: changed offlineimap/folder/LocalStatus.py
This patch removes the library six, compatible with python2. I need change these re-raise calls. Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
		| @@ -18,8 +18,6 @@ | |||||||
| from sys import exc_info | from sys import exc_info | ||||||
| import os | import os | ||||||
| import threading | import threading | ||||||
| import six |  | ||||||
|  |  | ||||||
| from .Base import BaseFolder | from .Base import BaseFolder | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -71,7 +69,7 @@ class LocalStatusFolder(BaseFolder): | |||||||
|                 errstr = ("Corrupt line '%s' in cache file '%s'" % |                 errstr = ("Corrupt line '%s' in cache file '%s'" % | ||||||
|                           (line, self.filename)) |                           (line, self.filename)) | ||||||
|                 self.ui.warn(errstr) |                 self.ui.warn(errstr) | ||||||
|                 six.reraise(ValueError, ValueError(errstr), exc_info()[2]) |                 raise ValueError(errstr, exc_info()[2]) | ||||||
|             self.messagelist[uid] = self.msglist_item_initializer(uid) |             self.messagelist[uid] = self.msglist_item_initializer(uid) | ||||||
|             self.messagelist[uid]['flags'] = flags |             self.messagelist[uid]['flags'] = flags | ||||||
|  |  | ||||||
| @@ -94,7 +92,7 @@ class LocalStatusFolder(BaseFolder): | |||||||
|                 errstr = "Corrupt line '%s' in cache file '%s'" % \ |                 errstr = "Corrupt line '%s' in cache file '%s'" % \ | ||||||
|                          (line, self.filename) |                          (line, self.filename) | ||||||
|                 self.ui.warn(errstr) |                 self.ui.warn(errstr) | ||||||
|                 six.reraise(ValueError, ValueError(errstr), exc_info()[2]) |                 raise ValueError(errstr, exc_info()[2]) | ||||||
|             self.messagelist[uid] = self.msglist_item_initializer(uid) |             self.messagelist[uid] = self.msglist_item_initializer(uid) | ||||||
|             self.messagelist[uid]['flags'] = flags |             self.messagelist[uid]['flags'] = flags | ||||||
|             self.messagelist[uid]['mtime'] = mtime |             self.messagelist[uid]['mtime'] = mtime | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Rodolfo García Peñas (kix)
					Rodolfo García Peñas (kix)