[codeface] [PATCH 10/19] PEP8 and made class a new-style class

  • From: Andreas Ringlstetter <andreas.ringlstetter@xxxxxxxxxxxxxxxxxxxx>
  • To: <codeface@xxxxxxxxxxxxx>
  • Date: Tue, 16 Feb 2016 13:39:59 +0100

From: Benjamin Hiefner <benjamin.hiefner@xxxxxxxxxxxxxxxxxxxx>

Signed-off-by: Benjamin Hiefner <benjamin.hiefner@xxxxxxxxxxxxxxxxxxxx>
---
 codeface/commit.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/codeface/commit.py b/codeface/commit.py
index 1376927..7c5e2f4 100644
--- a/codeface/commit.py
+++ b/codeface/commit.py
@@ -23,7 +23,8 @@ Contains class commit with all required members
 """
 #TODO insert comments into docstrings
 
-class Commit:
+
+class Commit(object):
     """Keywords to identify corrective commits
     Ref: A. Mockus and L. G. Votta, Identifying Reasons for Software
     Changes Using Historic Databases
@@ -164,6 +165,9 @@ class Commit:
     def checkIfCorrective(self, descr):
         """Check if commit description contains keywords that indicate a
         corrective commit
+
+        Args:
+            descr:
         """
         for line in descr:
             contains_keyword = [keyword in line.lower()
-- 
2.7.1


Other related posts: