From b6b62e5426b60b01fd094758f82f3fafbbec413b Mon Sep 17 00:00:00 2001 From: Tomer Filiba Date: Fri, 8 Feb 2013 14:45:26 +0200 Subject: [PATCH] change print to logger.debug --- .travis.yml | 2 +- plumbum/paramiko_machine.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b89ab4476..a523ca88e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,8 @@ python: - "2.5" - "2.6" - "2.7" - - "3.1" - "3.2" + - "3.3" install: - pip install six diff --git a/plumbum/paramiko_machine.py b/plumbum/paramiko_machine.py index e04c7951d..e29754e14 100644 --- a/plumbum/paramiko_machine.py +++ b/plumbum/paramiko_machine.py @@ -9,6 +9,7 @@ def __nonzero__(self): def __getattr__(self, name): raise ImportError("No module named paramiko") paramiko = paramiko() + import logging import six import errno @@ -71,7 +72,7 @@ def communicate(self): line = infile.readline() except (ValueError, IOError): line = None - print("!! %s", (repr(line),)) + logger.debug("communicate: %r", line) if not line: infile.close() infile = None