Update the Google App Engine example code to be compatible with the latest google app engine devserver.
import os
if os.environ.get('SERVER_SOFTWARE', '').startswith('Dev'):
- from google.appengine.tools.dev_appserver import HardenedModulesHook
- HardenedModulesHook._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']
+ from google.appengine.tools.devappserver2.python import sandbox
+ sandbox._WHITE_LIST_C_MODULES += ['_ctypes', 'gestalt']
Credit for this snippet goes to `Thomas Johansson
<http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434>`_