Skip to content

Commit

Permalink
unicode is now str, str is now bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBrennan committed Sep 13, 2018
1 parent 5399ecf commit e87a451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycocotools/coco.py
Expand Up @@ -300,7 +300,7 @@ def loadRes(self, resFile):

print('Loading and preparing results...')
tic = time.time()
if type(resFile) == str or type(resFile) == unicode:
if type(resFile) == str or type(resFile) == bytes:
anns = json.load(open(resFile))
elif type(resFile) == np.ndarray:
anns = self.loadNumpyAnnotations(resFile)
Expand Down

0 comments on commit e87a451

Please sign in to comment.