cc-4105: fixed horrible bug related to 'strong' reffing

This commit is contained in:
Rudi Grinberg 2012-08-10 11:40:44 -04:00
parent 95e4488518
commit ab658a3800
5 changed files with 24 additions and 12 deletions

View file

@ -13,7 +13,7 @@ def get_process_output(command):
"""
Run subprocess and return stdout
"""
logger.debug(command)
#logger.debug(command)
p = Popen(command, shell=True, stdout=PIPE)
return p.communicate()[0].strip()
@ -40,7 +40,7 @@ def duplicate_file(file_path):
fsrc = open(file_path, 'r')
fdst = tempfile.NamedTemporaryFile(delete=False)
logger.info("Copying %s to %s" % (file_path, fdst.name))
#logger.info("Copying %s to %s" % (file_path, fdst.name))
shutil.copyfileobj(fsrc, fdst)