Browse Source

Remove extraneous new lines when building

Ben Firshman 12 years ago
parent
commit
dd767aef34
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plum/service.py

+ 2 - 1
plum/service.py

@@ -1,6 +1,7 @@
 from docker.client import APIError
 import logging
 import re
+import sys
 from .container import Container
 
 log = logging.getLogger(__name__)
@@ -126,7 +127,7 @@ class Service(object):
                 match = re.search(r'Successfully built ([0-9a-f]+)', line)
                 if match:
                     image_id = match.group(1)
-            print line
+            sys.stdout.write(line)
 
         if image_id is None:
             raise BuildError()