Remove extra environment modifications
The RealRPC class now handles context restoration.
from __future__ import with_statement
-import os
+
import random
import threading
@@ -84,7 +84,7 @@ class APIProxyStub(object):
"""
return apiproxy_rpc.RealRPC(stub=self)
- def MakeSyncCall(self, service, call, request, response, request_id=None, environ=None):
+ def MakeSyncCall(self, service, call, request, response, request_id=None):
"""The main RPC entry point.
Args:
@@ -96,9 +96,6 @@ class APIProxyStub(object):
request_id: A unique string identifying the request associated with the
API call.
"""
- if environ and service == 'urlfetch' and call == 'Fetch':
- os.environ.update(environ)
-
assert service == self.__service_name, ('Expected "%s" service name, '
'was "%s"' % (self.__service_name,
service))
