Skip to content

Commit

Permalink
Keep PrintHook.sep for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
niboshi committed Mar 16, 2018
1 parent 710aaa9 commit 6725bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chainer/function_hooks/debug_print.py
Expand Up @@ -22,7 +22,7 @@ class PrintHook(function_hook.FunctionHook):
``backward`` methods without inserting print functions into
Chainer's library code.
Attributes:
Args:
sep: *(deprecated since v4.0.0)* Ignored.
end: Character to be added at the end of print function.
file: Output file_like object that that redirect to.
Expand Down Expand Up @@ -54,6 +54,7 @@ def __init__(self, sep=None, end='\n', file=sys.stdout, flush=True):
if sep is not None:
warnings.warn('sep argument in chainer.function_hooks.PrintHook '
'is deprecated.', DeprecationWarning)
self.sep = sep # Keep sep because it was originally documented
self.end = end
self.file = file
self.flush = flush
Expand Down

0 comments on commit 6725bb2

Please sign in to comment.