Skip to content

Commit

Permalink
Fixes pylint violation wrong-import-order, wrong-import-position.
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Maeda <mkouhei@palmtb.net>
  • Loading branch information
mkouhei committed Apr 23, 2017
1 parent 49431fe commit 9807aad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion backup2swift/config.py
Expand Up @@ -17,11 +17,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import sys
from backup2swift import utils
if sys.version_info > (2, 6) and sys.version_info < (2, 8):
import ConfigParser as configparser
elif sys.version_info > (3, 0):
import configparser
from backup2swift import utils


#: connection timeout
#: see also http://goo.gl/6KIJnc
Expand Down
6 changes: 3 additions & 3 deletions backup2swift/tests/test_command.py
Expand Up @@ -4,13 +4,13 @@
import os
import argparse
import sys
from backup2swift import __version__
from backup2swift import command as c
from backup2swift.tests import test_vars as v
if sys.version_info < (3, 0):
from StringIO import StringIO
else:
from io import StringIO
from backup2swift import __version__
from backup2swift import command as c
from backup2swift.tests import test_vars as v


class CommandTests(unittest.TestCase):
Expand Down
4 changes: 2 additions & 2 deletions backup2swift/tests/test_utils.py
Expand Up @@ -2,12 +2,12 @@
""" backup2swift.tests.test_utils """
import unittest
import sys
from backup2swift import utils as u
from backup2swift.tests import test_vars as v
if sys.version_info < (3, 0):
from StringIO import StringIO
else:
from io import StringIO
from backup2swift import utils as u
from backup2swift.tests import test_vars as v


class UtilsTests(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion backup2swift/utils.py
Expand Up @@ -16,9 +16,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import syslog
import multiprocessing
import socket
import syslog
import backup2swift

FQDN = socket.getfqdn()
Expand Down

0 comments on commit 9807aad

Please sign in to comment.