From 4f3a904fdfcabae0559c815274a3610fb64b20c3 Mon Sep 17 00:00:00 2001 From: Erik Price Date: Wed, 15 May 2019 00:13:15 -0700 Subject: [PATCH] Update docstring for `_slurp_stdin` --- CHANGELOG.rst | 4 ++-- squabble/cli.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a4707a4..c81d812 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,7 +1,7 @@ Changelog ========= -v1.4.0 (unreleased) +v1.3.1 (unreleased) ------------------- New @@ -10,7 +10,7 @@ New Changes ~~~~~~~ -- Bump versions for library dependencies. +- Upgrade ``pglast`` to version ``1.4``. Fixes ~~~~~ diff --git a/squabble/cli.py b/squabble/cli.py index 2a70aa0..e31e423 100644 --- a/squabble/cli.py +++ b/squabble/cli.py @@ -131,11 +131,13 @@ def _slurp_file(file_name): def _slurp_stdin(): - """Read entirety of stdin, silently exiting when sent an interrupt.""" + """ + Read entirety of stdin and return as string, or ``None`` if a ``^c`` + interrupt is triggered. + """ try: return sys.stdin.read() except KeyboardInterrupt: - print('aborted') return None