Source

pypy / lib_pypy / _scproxy.py

Diff from to

lib_pypy/_scproxy.py

     length = (ffi.CFStringGetLength(value) * 4) + 1
     buff = create_string_buffer(length)
     ffi.CFStringGetCString(value, buff, length * 4, kCFStringEncodingUTF8)
-    return unicode(buff.value, 'utf8')
+    return str(buff.value, 'utf8')
 
 def cfnum_to_int32(num):
     result_ptr = pointer(c_int32(0))
                     if host:
                         if cfportnum:
                             port = cfnum_to_int32(cfportnum)
-                            v = u'http://%s:%d' % (host, port)
+                            v = 'http://%s:%d' % (host, port)
                         else:
-                            v = u'http://%s' % (host,)
+                            v = 'http://%s' % (host,)
                         result[proto.lower()] = v
         return result
     finally: