File: mechanize_seek.dpatch

package info (click to toggle)
python-mechanize 1%3A0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 2,056 kB
  • ctags: 3,377
  • sloc: python: 23,140; makefile: 4
file content (10 lines) | stat: -rwxr-xr-x 374 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
--- a/mechanize/_html.py
+++ b/mechanize/_html.py
@@ -621,6 +621,7 @@
         Factory.set_response(self, response)
         if response is not None:
             data = response.read()
+            response.seek(0)
             soup = self._soup_class(self.encoding, data)
             self._forms_factory.set_response(
                 copy.copy(response), self.encoding)