From e2eab553f42d6ad388740b92856e7cd4d8e0f719 Mon Sep 17 00:00:00 2001 From: Attila-Mihaly Balazs Date: Thu, 14 Apr 2016 15:56:34 +0300 Subject: [PATCH] Update GAE example code Update the Google App Engine example code to be compatible with the latest google app engine devserver. --- docs/faq.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/faq.rst b/docs/faq.rst index 0b0375e1..9dd348f5 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -141,8 +141,8 @@ work in production environments:: 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 `_ -- 2.47.2