Skip to content

Commit

Permalink
Remove get_runtime_info(as_text=) argument
Browse files Browse the repository at this point in the history
  • Loading branch information
niboshi committed Feb 9, 2018
1 parent 6ab6ead commit ca599cf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions chainer/_runtime_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,11 @@ def __str__(self):
return s.getvalue()


def get_runtime_info(as_text=False):
ri = _RuntimeInfo()
if as_text:
return str(ri)
else:
return ri
def get_runtime_info():
return _RuntimeInfo()


def print_runtime_info(out=None):
if out is None:
out = sys.stdout
text = get_runtime_info(as_text=True)
out.write(text)
out.write(str(get_runtime_info()))

0 comments on commit ca599cf

Please sign in to comment.