Commits

Robert Brewer committed 330702e

Some buglets.

  • Participants
  • Parent commits c32ac07

Comments (0)

Files changed (3)

File cherrypy/_cpserver.py

     nodelay = True
     """If True (the default since 3.1), sets the TCP_NODELAY socket option."""
     
-    wsgi_version = (1, 1)
+    wsgi_version = (1, 0)
     """The WSGI version tuple to use with the builtin WSGI server.
     The provided options are (1, 0) [which includes support for PEP 3333,
     which declares it covers WSGI version 1.0.1 but still mandates the

File cherrypy/lib/__init__.py

         if chunk:
             return chunk
         else:
-            self.input.close()
+            if hasattr(self.input, 'close'):
+                self.input.close()
             raise StopIteration()
     next = __next__
 

File cherrypy/test/test_tutorials.py

         root = Dummy()
         root.load_tut_module = load_tut_module
         cherrypy.tree.mount(root)
-    setup_server = staticmethod(setup_server)
+    setup_server = classmethod(setup_server)
 
     
     def test01HelloWorld(self):