error: sort error classes in alphabetical order
authorDmitry Selyutin <ghostmansd@gmail.com>
Thu, 14 Sep 2017 15:14:00 +0000 (18:14 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 14 Sep 2017 19:46:58 +0000 (22:46 +0300)
pygnulib/error.py

index 75ee13bf9a6d7aabfc915c2dd264ed447d070532..4504c0fbbb17c9adcf1672dcacfad5c374932635 100644 (file)
@@ -35,11 +35,10 @@ class CommandLineError(Exception):
 
 
 
-class M4BaseMismatchError(Exception):
-    """unexpected gl_M4_BASE macro value"""
-    def __init__(self, path, expected, actual):
-        fmt = "{0} is expected to contain gl_M4_BASE([{1}]), not gl_M4_BASE([{2}])"
-        super().__init__(fmt.format(path, expected, actual))
+class EmptyFileListError(Exception):
+    """cannot process empty file list"""
+    def __init__(self):
+        super().__init__("cannot process empty file list")
 
 
 
@@ -58,10 +57,11 @@ class IncompatibleLicenseError(Exception):
 
 
 
-class EmptyFileListError(Exception):
-    """cannot process empty file list"""
-    def __init__(self):
-        super().__init__("cannot process empty file list")
+class M4BaseMismatchError(Exception):
+    """unexpected gl_M4_BASE macro value"""
+    def __init__(self, path, expected, actual):
+        fmt = "{0} is expected to contain gl_M4_BASE([{1}]), not gl_M4_BASE([{2}])"
+        super().__init__(fmt.format(path, expected, actual))