Permalink
Browse files

Cmd object handlers should be private, so use the preceding underscor…

…e convention. Oh python and your lack of encapsulation...
  • Loading branch information...
1 parent 104cd7a commit 401a296d445f6206e1975e336bbf4fe803ba8ad9 @mbdriscoll mbdriscoll committed Mar 20, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 console.py
View
@@ -218,12 +218,12 @@ def __handle__profile(args):
class Cmd():
def __init__(self, handler, usage_str, desc_str):
- self.handler = handler
+ self._handler = handler
self.usage_str = usage_str
self.desc_str = desc_str
def __call__(self, args):
- return self.handler(args)
+ return self._handler(args)
# 'name' : (handler, usage, description),
COMMANDS = {

0 comments on commit 401a296

Please sign in to comment.