Explorar el Código

删除自定义_content文本属性

dongzhaorui hace 2 años
padre
commit
8c0ff2963e
Se han modificado 1 ficheros con 2 adiciones y 8 borrados
  1. 2 8
      zgztb_cookie/FworkSpider/feapder/network/response.py

+ 2 - 8
zgztb_cookie/FworkSpider/feapder/network/response.py

@@ -43,7 +43,6 @@ class Response(res):
         self._cached_selector = None
         self._cached_text = None
         self._cached_json = None
-        self._cached_content = None
 
         self._encoding = None
 
@@ -270,13 +269,8 @@ class Response(res):
 
     @property
     def content(self):
-        if self._cached_content is None:
-            self._cached_content = super(Response, self).content
-        return self._cached_content
-
-    @content.setter
-    def content(self, obj_bytes):
-        self._cached_content = obj_bytes
+        content = super(Response, self).content
+        return content
 
     @property
     def is_html(self):