1. cherrypy
  2. CherryPy
  3. Pull requests

Pull requests

#43 Merged
Repository
eneldoserrata
Branch
default
Repository
cherrypy
Branch
default

fix profiler.py bug when runing in python 3

Author
  1. Eneldo Serrata
Reviewers
Description

when use BytesIO() in stats funcion in python 3 the server return 500 Internal Server Error TypeError: 'str' does not support the buffer interface with python 3 have to use StringIO

Comments (1)

  1. Joel Rivera

    After some review I realise that by just changing BytesIO to StringIO is enough without the if sys.version... because BytesIO == StringIO in python 2, or at least that what _cpcompat is doing. Eneldo Serrata can you modify profiler.py to reflect this change?