Changes between Version 5 and Version 6 of PsycoMiddleware


Ignore:
Timestamp:
Mar 1, 2007, 11:57:17 AM (17 years ago)
Author:
Mrts
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PsycoMiddleware

    v5 v6  
    6363        return None
    6464}}}
     65
     66Or even
     67{{{
     68#!python
     69from platform import architecture
     70
     71if architecture()[0] != '32bit':
     72    raise Exception("Don't use this on non-32-bit platforms")
     73
     74import psyco
     75psyco.profile()
     76
     77class PsycoMiddleware(object):
     78    def process_request(self, request):
     79        return None
     80}}}
Back to Top