Merged "be commit --allow-empty from be.wtk-rr"
authorW. Trevor King <wking@drexel.edu>
Sun, 19 Jul 2009 19:26:48 +0000 (15:26 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 19 Jul 2009 19:26:48 +0000 (15:26 -0400)
1  2 
libbe/cmdutil.py

index 8499633cdc1bec70e84ca1a7a5249b3bc47169a7,853a75a406f53fa863a9263ad5ff12566f5df41a..548c255ba63c137a19480aca3952e82842ee63c7
@@@ -70,12 -70,13 +70,14 @@@ def get_command(command_name)
      return cmd
  
  
 -def execute(cmd, args):
 +def execute(cmd, args, manipulate_encodings=True):
      enc = encoding.get_encoding()
      cmd = get_command(cmd)
-     cmd.execute([a.decode(enc) for a in args],
-                 manipulate_encodings=manipulate_encodings)
-     return 0
 -    ret = cmd.execute([a.decode(enc) for a in args])
++    ret = cmd.execute([a.decode(enc) for a in args],
++                      manipulate_encodings=manipulate_encodings)
+     if ret == None:
+         ret = 0
+     return ret
  
  def help(cmd=None, parser=None):
      if cmd != None: