[meld/meld-1-8] Sort VC plugins before constructing them to avoid heisenbugs
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/meld-1-8] Sort VC plugins before constructing them to avoid heisenbugs
- Date: Sat, 12 Oct 2013 02:57:36 +0000 (UTC)
commit 83c1ca8b93d3df13631398ab0ad52d63f9283f01
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Oct 12 12:44:12 2013 +1000
Sort VC plugins before constructing them to avoid heisenbugs
meld/vc/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/meld/vc/__init__.py b/meld/vc/__init__.py
index f616ec6..740fcb3 100644
--- a/meld/vc/__init__.py
+++ b/meld/vc/__init__.py
@@ -30,7 +30,7 @@ from ._vc import DATA_NAME, DATA_STATE, DATA_REVISION, DATA_OPTIONS
def load_plugins():
_vcdir = os.path.dirname(os.path.abspath(__file__))
ret = []
- for plugin in glob.glob(os.path.join(_vcdir, "[a-z]*.py")):
+ for plugin in sorted(glob.glob(os.path.join(_vcdir, "[a-z]*.py"))):
modname = "meld.vc.%s" % os.path.basename(os.path.splitext(plugin)[0])
ret.append( __import__(modname, globals(), locals(), "*") )
return ret
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]