Moved RepaException to common.py module
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 11 Aug 2013 20:26:21 +0000 (23:26 +0300)
committerEduard Bartosh <eduard.bartosh@intel.com>
Tue, 13 Aug 2013 06:56:34 +0000 (23:56 -0700)
This exception will be called from may repa modules. Let's put it in
common. Other common entities will go there too.

Change-Id: Ice0bc5abf5386a73dbb7b8457554688a2493f148
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/5841
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Hasan Wan <hasan.wan@intel.com>
repa/common.py [new file with mode: 0644]
repa/main.py

diff --git a/repa/common.py b/repa/common.py
new file mode 100644 (file)
index 0000000..2fd61d5
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+"""
+REPA: Release Engineering Process Assistant.
+
+Copyright (C) Intel Corporation 2013
+Licence: GPL version 2
+Author: Ed Bartosh <eduard.bartosh@intel.com>
+
+Common module.
+Common functions, classes, exceptions.
+"""
+
+class RepaException(Exception):
+    """Custom repa exception. All repa modules should use it."""
+    pass
+
index 1f1c402..701a674 100755 (executable)
@@ -18,9 +18,7 @@ import ConfigParser
 from os.path import expanduser
 from argparse import ArgumentParser
 
-class RepaException(Exception):
-    """Custom repa exception. All repa modules should use it."""
-    pass
+from repa.common import RepaException
 
 
 def parse_args(argv):