From 6c3f658c428def4644f10dc819e8d65adaf1b014 Mon Sep 17 00:00:00 2001 From: Wes Turner Date: Sat, 30 Apr 2016 03:43:49 -0500 Subject: [PATCH] BUG: include files named \s+ with -p/--pathpy or --pathlib (fixes #24) --- pyline/pyline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyline/pyline.py b/pyline/pyline.py index d7c2a31..29bae39 100755 --- a/pyline/pyline.py +++ b/pyline/pyline.py @@ -324,9 +324,9 @@ def splitfunc(obj): rgx = _rgx and _rgx.match(line) or None p = path = None - if path_tools_pathpy or path_tools_pathlib and line.rstrip(): + if path_tools_pathpy or path_tools_pathlib: try: - p = path = Path(line.strip()) or None + p = path = Path(line) or None except Exception as e: log.exception(e) pass