summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2016-02-08 02:49:37 +0100
committernfnty <git@nfnty.se>2016-02-08 04:43:05 +0100
commitcd47d26afc9d3e53e8bbc5cee9939e3bf2d820da (patch)
tree64719b36f42c24c117569d35fb390cf3de4bddfd
parentb72ad9ae5a04529865ec154b670771d4f7950bb2 (diff)
downloadranger-cd47d26afc9d3e53e8bbc5cee9939e3bf2d820da.tar.gz
VCS: Reorder imports
-rw-r--r--ranger/ext/vcs/bzr.py2
-rw-r--r--ranger/ext/vcs/git.py4
-rw-r--r--ranger/ext/vcs/hg.py2
-rw-r--r--ranger/ext/vcs/svn.py5
-rw-r--r--ranger/ext/vcs/vcs.py4
5 files changed, 9 insertions, 8 deletions
diff --git a/ranger/ext/vcs/bzr.py b/ranger/ext/vcs/bzr.py
index 3461c3d2..ab4b8b06 100644
--- a/ranger/ext/vcs/bzr.py
+++ b/ranger/ext/vcs/bzr.py
@@ -3,9 +3,9 @@
 
 """GNU Bazaar module"""
 
+from datetime import datetime
 import os
 import re
-from datetime import datetime
 
 from .vcs import Vcs, VcsError
 
diff --git a/ranger/ext/vcs/git.py b/ranger/ext/vcs/git.py
index 32003d5b..ca49998e 100644
--- a/ranger/ext/vcs/git.py
+++ b/ranger/ext/vcs/git.py
@@ -3,10 +3,10 @@
 
 """Git module"""
 
-import os
-import re
 from datetime import datetime
 import json
+import os
+import re
 
 from .vcs import Vcs, VcsError
 
diff --git a/ranger/ext/vcs/hg.py b/ranger/ext/vcs/hg.py
index 7c5507eb..16740307 100644
--- a/ranger/ext/vcs/hg.py
+++ b/ranger/ext/vcs/hg.py
@@ -3,9 +3,9 @@
 
 """Mercurial module"""
 
-import os
 from datetime import datetime
 import json
+import os
 
 from .vcs import Vcs, VcsError
 
diff --git a/ranger/ext/vcs/svn.py b/ranger/ext/vcs/svn.py
index c152ca7c..14e82db0 100644
--- a/ranger/ext/vcs/svn.py
+++ b/ranger/ext/vcs/svn.py
@@ -4,10 +4,11 @@
 """Subversion module"""
 
 from __future__ import with_statement
+
+from datetime import datetime
+import logging
 import os
 import re
-import logging
-from datetime import datetime
 
 from .vcs import Vcs, VcsError
 
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index 93db5eab..a99f9aa9 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -48,9 +48,9 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
 
     # Backends
     REPOTYPES = {
+        'bzr': {'class': 'Bzr', 'setting': 'vcs_backend_bzr', 'lazy': True},
         'git': {'class': 'Git', 'setting': 'vcs_backend_git', 'lazy': False},
         'hg': {'class': 'Hg', 'setting': 'vcs_backend_hg', 'lazy': True},
-        'bzr': {'class': 'Bzr', 'setting': 'vcs_backend_bzr', 'lazy': True},
         'svn': {'class': 'SVN', 'setting': 'vcs_backend_svn', 'lazy': True},
     }
 
@@ -489,7 +489,7 @@ class VcsThread(threading.Thread):  # pylint: disable=too-many-instance-attribut
         self.wake.set()
 
 # Backend imports
+import ranger.ext.vcs.bzr  # NOQA pylint: disable=wrong-import-position
 import ranger.ext.vcs.git  # NOQA pylint: disable=wrong-import-position
 import ranger.ext.vcs.hg  # NOQA pylint: disable=wrong-import-position
-import ranger.ext.vcs.bzr  # NOQA pylint: disable=wrong-import-position
 import ranger.ext.vcs.svn  # NOQA pylint: disable=wrong-import-position