Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcery-ai-bot committed Apr 21, 2021
1 parent dfd2872 commit b7ba744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/greet.py
Expand Up @@ -50,7 +50,7 @@ def greet(self, count: int=1, name: str=""):
if not name:
name = input('Your name: ')

for c in range(count):
for _ in range(count):
print("Hello %s" % name)

def part(self):
Expand Down
5 changes: 1 addition & 4 deletions mach.py
Expand Up @@ -268,10 +268,7 @@ def _run1(inst, args=None):
args.pop(args.index("self"))
if func_args_kwargs.varkw:
kwargs = getattr(p, func_args_kwargs.varkw)
if kwargs:
kwargs = json.loads(kwargs)
else:
kwargs = {}
kwargs = json.loads(kwargs) if kwargs else {}
func = getattr(inst, p.cmd)
func(*(getattr(p, arg) for arg in args), **kwargs)
else:
Expand Down

0 comments on commit b7ba744

Please sign in to comment.