def ThrottleRemoteDatastore(throttle, remote_datastore_stub=None):
  if not remote_datastore_stub:
    remote_datastore_stub = apiproxy_stub_map.apiproxy.GetStub('datastore_v3')
  if not isinstance(remote_datastore_stub, remote_api_stub.RemoteDatastoreStub):
    raise remote_api_stub.ConfigurationError('remote_api is not configured.')
  throttler = DatastoreThrottler(throttle)
  remote_datastore_stub._PreHookHandler = throttler.PrehookHandler
  remote_datastore_stub._PostHookHandler = throttler.PosthookHandler
Don't warn when a variable in a list comprehension is assigned to but
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/remote_api/throttle.py/ThrottleRemoteDatastore--crossover with--dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_other.py/TestUnusedAssignment.test_assignInListComprehension