~shijing/unity-china-photo-scope/unity-china-photo-scope

« back to all changes in this revision

Viewing changes to src/unity_sogou_daemon.py

  • Committer: jingjing20061278
  • Date: 2013-07-20 01:12:50 UTC
  • Revision ID: jingjing20061278@163.com-20130720011250-a7p6ot0bsxeehrff
modify file

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
        else:
269
269
            self._pending[cat] = None
270
270
            try:
271
 
                a = urllib.parse.unquote(self.url).encode()
 
271
#                a = urllib.parse.unquote(self.url).encode()
272
272
                results = json.loads(urllib.request.urlopen(self.url).read().decode('gbk', 'ignore'))
273
 
                print(type(results)) 
 
273
#                print(type(results)) 
274
274
            except:
275
275
                  pass
276
276
        return results