Permalink
Browse files

use simpler way of stripping colon off end of arg name

  • Loading branch information...
1 parent 26943e8 commit d7172012b8dbb17fa18d406a9abba5594b15e731 @keiko713 keiko713 committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libcloud_rest/parse_methods.py
@@ -14,7 +14,7 @@ def ignored_function(func_str):
def get_argument(str, argspec):
list = str.split(None, 2)
- arg_name = list[1][:-1]
+ arg_name = list[1].strip(':')
arg_type = list[2]
optional = False
if argspec.defaults:

0 comments on commit d717201

Please sign in to comment.