You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2018/03/31 13:08:55 UTC

[incubator-mxnet] branch master updated: string.format doesn't support %s (#10337)

This is an automated email from the ASF dual-hosted git repository.

marcoabreu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 5e8e8a4  string.format doesn't support %s (#10337)
5e8e8a4 is described below

commit 5e8e8a44025107ec641026a910e7cf56d7586014
Author: solin319 <li...@126.com>
AuthorDate: Sat Mar 31 21:08:46 2018 +0800

    string.format doesn't support %s (#10337)
    
    Change %s to {}
---
 example/rcnn/rcnn/io/image.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/example/rcnn/rcnn/io/image.py b/example/rcnn/rcnn/io/image.py
index e468e46..1b83300 100644
--- a/example/rcnn/rcnn/io/image.py
+++ b/example/rcnn/rcnn/io/image.py
@@ -37,7 +37,7 @@ def get_image(roidb):
     processed_roidb = []
     for i in range(num_images):
         roi_rec = roidb[i]
-        assert os.path.exists(roi_rec['image']), '%s does not exist'.format(roi_rec['image'])
+        assert os.path.exists(roi_rec['image']), '{} does not exist'.format(roi_rec['image'])
         im = cv2.imread(roi_rec['image'])
         if roidb[i]['flipped']:
             im = im[:, ::-1, :]

-- 
To stop receiving notification emails like this one, please contact
marcoabreu@apache.org.