Commits

Robert Brewer committed 330702e

Some buglets.

Comments (0)

Files changed (3)

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

cherrypy/lib/__init__.py

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

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):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.