diff options
Diffstat (limited to 'libbe/util/wsgi.py')
-rw-r--r-- | libbe/util/wsgi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/util/wsgi.py b/libbe/util/wsgi.py index cfa43be..9f22596 100644 --- a/libbe/util/wsgi.py +++ b/libbe/util/wsgi.py @@ -46,7 +46,7 @@ try: import cherrypy.wsgiserver except ImportError: cherrypy = None -if cherrypy != None: +if cherrypy is not None: try: # CherryPy >= 3.2 import cherrypy.wsgiserver.ssl_builtin except ImportError: # CherryPy <= 3.1.X @@ -239,9 +239,9 @@ class WSGI_Object (object): req_uri += '?' + environ['QUERY_STRING'] start = time.localtime() if time.daylight: - offset = time.altzone / 60 / 60 * -100 + offset = time.altzone // 60 // 60 * -100 else: - offset = time.timezone / 60 / 60 * -100 + offset = time.timezone // 60 // 60 * -100 if offset >= 0: offset = '+{:04d}'.format(offset) elif offset < 0: @@ -800,7 +800,7 @@ if libbe.TESTING: ('Content-Type','text/plain'), ('X-Dummy-Header','Dummy Value')], self.caller.response_headers) - self.assertTrue(self.caller.exc_info == None, self.caller.exc_info) + self.assertTrue(self.caller.exc_info is None, self.caller.exc_info) def test_log_request(self): self.app.log_request( |