summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 17:43:23 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 17:43:23 +0000
commit534ba86ecfaf9bebf609f2479269a334f7c8dd7a (patch)
tree10a911e0b24c4286ec2065de10f75988212e335b
parente717d965f66017b87aa38332dfe6044f76b3dc4b (diff)
downloadimport-534ba86ecfaf9bebf609f2479269a334f7c8dd7a.tar.gz
Explicitly strip newlines
We don't want to accidentally strip other kinds of whitespace
-rwxr-xr-xexts/pip.find_deps2
-rwxr-xr-xexts/pip.to_lorry2
2 files changed, 2 insertions, 2 deletions
diff --git a/exts/pip.find_deps b/exts/pip.find_deps
index 26f31b2..ec842d8 100755
--- a/exts/pip.find_deps
+++ b/exts/pip.find_deps
@@ -260,7 +260,7 @@ def find_runtime_deps(source, name, version=None):
if line == '':
break
- logging.debug(line.rstrip())
+ logging.debug(line.rstrip('\n'))
p.wait() # even with eof on both streams, we still wait
diff --git a/exts/pip.to_lorry b/exts/pip.to_lorry
index 1027459..da7df9b 100755
--- a/exts/pip.to_lorry
+++ b/exts/pip.to_lorry
@@ -62,7 +62,7 @@ def find_repo_type(url):
if line == '':
break
- logging.debug(line.rstrip())
+ logging.debug(line.rstrip('\n'))
p.wait() # even with eof on both streams, we still wait