Commits

Anonymous committed b28b7bd

Use unicode in ResourceResult & fix error

  • Participants
  • Parent commits ecc9a99

Comments (0)

Files changed (1)

File restclient/rest.py

     """Exception raised when a request is malformed"""
 
 
-class ResourceResult(str):
+class ResourceResult(unicode):
     """ result returned by `restclient.rest.RestClient`.
     
     you can get result like as string and  status code by result.http_code, 
 
     """
     def __new__(cls, s, http_code, response):
-        self = str.__new__(cls, s)
+        self = unicode.__new__(cls, s)
         self.http_code = http_code
         self.response = response
         return self
         """
         to set a new uri absolute path
         """
-        self.uri = self.client.transport.make_uri(self.uri, path)
+        self.uri = self.client.make_uri(self.uri, path)
 
 
 class RestClient(object):