From 5c0a3965cdb9cac87d0b0ea773a6276c73a27ba6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 29 Mar 2009 17:42:48 +0200 Subject: quite some changes for py3 These changes introduce some compatibility code. They don't make wsgitools usable with Python 3.0, but they also don't break compatibility with Python 2.5. --- wsgitools/applications.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wsgitools/applications.py') diff --git a/wsgitools/applications.py b/wsgitools/applications.py index f90e395..286ab9b 100644 --- a/wsgitools/applications.py +++ b/wsgitools/applications.py @@ -2,6 +2,11 @@ import os.path __all__ = [] +try: + basestring +except NameError: + basestring = str + __all__.append("StaticContent") class StaticContent: """ -- cgit v1.2.3