[codeface] [PATCH 4/9] Fixed typo bugs in code (noticed by pycharm).

  • From: Matthias Dittrich <matthi.d@xxxxxxxxxxxxxx>
  • To: codeface@xxxxxxxxxxxxx
  • Date: Fri, 17 Oct 2014 15:14:21 +0200

Renamed undefined "logger" symbol to "log" and the undefined "reg_end" symbol 
to "rev_end".

Signed-off-by: Matthias Dittrich <matthi.d@xxxxxxxxx>
---
 codeface/VCS.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/codeface/VCS.py b/codeface/VCS.py
index 3522de5..5229981 100644
--- a/codeface/VCS.py
+++ b/codeface/VCS.py
@@ -226,7 +226,7 @@ class gitVCS (VCS):
         project including all subsystems) is stored under "__main__".
         """
         if self.repo == None:
-            logger.critical("Repository unset in Git VCS")
+            log.critical("Repository unset in Git VCS")
             raise Error("Can't do anything without repo")
 
         ## Retrieve and store the commit timestamp for the revision range
@@ -338,7 +338,7 @@ class gitVCS (VCS):
         revrange = ""
 
         if rev_start == None and rev_end != None:
-            revrange += reg_end
+            revrange += rev_end
         else:
             if rev_start:
                 revrange += "{0}..".format(rev_start)
@@ -1115,7 +1115,7 @@ class gitVCS (VCS):
         rev_start = self.rev_start
         rev_end = self.rev_end
         if rev_start == None and rev_end != None:
-            revrange += reg_end
+            revrange += rev_end
         else:
             if rev_start:
                 revrange += "{0}..".format(rev_start)
-- 
1.8.5.5


Other related posts: