From ab084b6e6caf02439cf2e3147876da76ab1bb604 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Fri, 7 Dec 2018 16:36:10 +0800 Subject: [PATCH] Polish code test=develop --- python/paddle/dataset/image.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/paddle/dataset/image.py b/python/paddle/dataset/image.py index 645d54a260..57547f1867 100644 --- a/python/paddle/dataset/image.py +++ b/python/paddle/dataset/image.py @@ -34,14 +34,15 @@ from __future__ import print_function import six import numpy as np -# NOTE(minqiyang): this is an ugly fix for the numpy bug reported here +# FIXME(minqiyang): this is an ugly fix for the numpy bug reported here # https://github.com/numpy/numpy/issues/12497 if six.PY3: import subprocess import sys - import_cv2_proc = subprocess.Popen([sys.executable, "-c", "import cv2"], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + import_cv2_proc = subprocess.Popen( + [sys.executable, "-c", "import cv2"], + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) out, err = import_cv2_proc.communicate() retcode = import_cv2_proc.poll() if retcode != 0: -- GitLab