Commits

Gary Bernhardt  committed 0addcbf

Switched a function name from camel case to underscore

  • Participants
  • Parent commits 236df38

Comments (0)

Files changed (1)

File complexity.py

                                  start_line=1,
                                  end_line=end_line))
 
-    def dispatchChildren(self, node):
+    def dispatch_children(self, node):
         for child in node.getChildNodes():
             self.dispatch(child)
 
         for test in tests:
             self.dispatch(test)
         self._in_conditional = False
-        self.dispatchChildren(node)
+        self.dispatch_children(node)
 
     def _tests_for_if(self, if_node):
         try:
 
     def __processDecisionPoint(self, node):
         self.score += 1
-        self.dispatchChildren(node)
+        self.dispatch_children(node)
 
     visitFor = visitGenExprFor \
             = visitListCompFor \
             = visitWhile = __processDecisionPoint
 
     def _visit_logical_operator(self, node):
-        self.dispatchChildren(node)
+        self.dispatch_children(node)
         if self._in_conditional:
             self.score += len(node.getChildren()) - 1
 
     visitOr = _visit_logical_operator
 
     def visitTryExcept(self, node):
-        self.dispatchChildren(node)
+        self.dispatch_children(node)
         self.score += len(node.handlers)