diff --git a/pshtt/utils.py b/pshtt/utils.py index 14ba7331..ab672f41 100644 --- a/pshtt/utils.py +++ b/pshtt/utils.py @@ -101,7 +101,11 @@ def debug(message, divider=False): @contextlib.contextmanager def smart_open(filename=None): - """Context manager that can handle writing to a file or stdout""" + """ + Context manager that can handle writing to a file or stdout + + Adapted from: https://stackoverflow.com/a/17603000 + """ if filename is None: fh = sys.stdout else: