repository/__init__.py remove try import python2
This patch removes the dup code between try and catch Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
parent
9123cb83fc
commit
7fff7fc458
@ -15,12 +15,7 @@
|
|||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
from sys import exc_info
|
from sys import exc_info
|
||||||
|
|
||||||
try:
|
|
||||||
from configparser import NoSectionError
|
from configparser import NoSectionError
|
||||||
except ImportError: # python2
|
|
||||||
from configparser import NoSectionError
|
|
||||||
|
|
||||||
from offlineimap.repository.IMAP import IMAPRepository, MappedIMAPRepository
|
from offlineimap.repository.IMAP import IMAPRepository, MappedIMAPRepository
|
||||||
from offlineimap.repository.Gmail import GmailRepository
|
from offlineimap.repository.Gmail import GmailRepository
|
||||||
from offlineimap.repository.Maildir import MaildirRepository
|
from offlineimap.repository.Maildir import MaildirRepository
|
||||||
|
Loading…
Reference in New Issue
Block a user