Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 97c0baf

Browse files
authored
Merge pull request #436 from reedkavner/gae-development
Update GAE environ test
2 parents c28e9fb + 6fcc440 commit 97c0baf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

twitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def __init__(self,
210210
# check to see if the library is running on a Google App Engine instance
211211
# see GAE.rst for more information
212212
if os.environ:
213-
if 'Google App Engine' in os.environ.get('SERVER_SOFTWARE', ''):
213+
if 'APPENGINE_RUNTIME' in os.environ.keys():
214214
import requests_toolbelt.adapters.appengine # Adapter ensures requests use app engine's urlfetch
215215
requests_toolbelt.adapters.appengine.monkeypatch()
216216
cache = None # App Engine does not like this caching strategy, disable caching

0 commit comments

Comments
 (0)