Changed import order

These changes close the lintian warning C0411.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-29 21:10:16 +02:00
parent b94983ee8a
commit 7d62441dc2
11 changed files with 13 additions and 14 deletions

View File

@ -17,8 +17,8 @@
import os import os
import re import re
from sys import exc_info from sys import exc_info
import six
from configparser import SafeConfigParser, Error from configparser import SafeConfigParser, Error
import six
from offlineimap.localeval import LocalEval from offlineimap.localeval import LocalEval

View File

@ -18,8 +18,8 @@
"""Folder implementation to support features of the Gmail IMAP server.""" """Folder implementation to support features of the Gmail IMAP server."""
import re import re
import six
from sys import exc_info from sys import exc_info
import six
from offlineimap import imaputil, imaplibutil, OfflineImapError from offlineimap import imaputil, imaplibutil, OfflineImapError
import offlineimap.accounts import offlineimap.accounts

View File

@ -17,13 +17,13 @@
import os import os
import six
from sys import exc_info from sys import exc_info
import six
from .Maildir import MaildirFolder
import offlineimap.accounts import offlineimap.accounts
from offlineimap import OfflineImapError from offlineimap import OfflineImapError
from offlineimap import imaputil from offlineimap import imaputil
from .Maildir import MaildirFolder
class GmailMaildirFolder(MaildirFolder): class GmailMaildirFolder(MaildirFolder):

View File

@ -22,10 +22,10 @@ import time
from sys import exc_info from sys import exc_info
import six import six
from .Base import BaseFolder
from offlineimap import imaputil, imaplibutil, emailutil, OfflineImapError from offlineimap import imaputil, imaplibutil, emailutil, OfflineImapError
from offlineimap import globals from offlineimap import globals
from offlineimap.virtual_imaplib2 import MonthNames from offlineimap.virtual_imaplib2 import MonthNames
from .Base import BaseFolder
# Globals # Globals
CRLF = '\r\n' CRLF = '\r\n'

View File

@ -19,9 +19,9 @@ import socket
import time import time
import re import re
import os import os
import six
from sys import exc_info from sys import exc_info
from threading import Lock from threading import Lock
import six
try: try:
from hashlib import md5 from hashlib import md5

View File

@ -19,14 +19,13 @@ import fcntl
import time import time
import subprocess import subprocess
import threading import threading
import rfc6555
import socket import socket
import errno import errno
import zlib import zlib
from sys import exc_info from sys import exc_info
from hashlib import sha512, sha384, sha256, sha224, sha1 from hashlib import sha512, sha384, sha256, sha224, sha1
import six import six
import rfc6555
from offlineimap import OfflineImapError from offlineimap import OfflineImapError
from offlineimap.ui import getglobalui from offlineimap.ui import getglobalui

View File

@ -15,12 +15,12 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# 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 os
from stat import *
from offlineimap import folder from offlineimap import folder
from offlineimap.ui import getglobalui from offlineimap.ui import getglobalui
from offlineimap.error import OfflineImapError from offlineimap.error import OfflineImapError
from offlineimap.repository.Base import BaseRepository from offlineimap.repository.Base import BaseRepository
import os
from stat import *
class MaildirRepository(BaseRepository): class MaildirRepository(BaseRepository):

View File

@ -14,8 +14,8 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# 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 six
from sys import exc_info from sys import exc_info
import six
try: try:
from configparser import NoSectionError from configparser import NoSectionError

View File

@ -13,7 +13,6 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# 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 offlineimap.virtual_imaplib2 as imaplib
import unittest import unittest
import logging import logging
import os import os
@ -23,6 +22,7 @@ import shutil
import subprocess import subprocess
import tempfile import tempfile
import random import random
import offlineimap.virtual_imaplib2 as imaplib
random.seed() random.seed()

View File

@ -1,8 +1,8 @@
#!/usr/bin/env python #!/usr/bin/env python
# Copyright 2013 Eygene A. Ryabinkin # Copyright 2013 Eygene A. Ryabinkin
from offlineimap import globals
import unittest import unittest
from offlineimap import globals
class Opt: class Opt:

View File

@ -16,11 +16,11 @@
import unittest import unittest
import logging import logging
from test.OLItest import OLITestLib
from offlineimap import imaputil from offlineimap import imaputil
from offlineimap.ui import UI_LIST, setglobalui from offlineimap.ui import UI_LIST, setglobalui
from offlineimap.CustomConfig import CustomConfigParser from offlineimap.CustomConfig import CustomConfigParser
from test.OLItest import OLITestLib
# Things need to be setup first, usually setup.py initializes everything. # Things need to be setup first, usually setup.py initializes everything.
# but if e.g. called from command line, we take care of default values here: # but if e.g. called from command line, we take care of default values here: