Skip to content

Commit ca273b2

Browse files
chore(gae): rename and delete region tags in standard/modules (#13189)
1 parent 7b9ca48 commit ca273b2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

appengine/standard/modules/main.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,31 @@
1919

2020
import urllib2
2121

22-
# [START modules_import]
22+
# [START gae_standard_modules_import]
2323
from google.appengine.api import modules
24+
# [END gae_standard_modules_import]
2425

25-
# [END modules_import]
2626
import webapp2
2727

2828

2929
class GetModuleInfoHandler(webapp2.RequestHandler):
3030
def get(self):
31-
# [START module_info]
3231
module = modules.get_current_module_name()
3332
instance_id = modules.get_current_instance_id()
3433
self.response.write("module_id={}&instance_id={}".format(module, instance_id))
35-
# [END module_info]
3634

3735

3836
class GetBackendHandler(webapp2.RequestHandler):
3937
def get(self):
40-
# [START access_another_module]
38+
# [START gae_standard_modules_access_another_module]
4139
backend_hostname = modules.get_hostname(module="my-backend")
4240
url = "http://{}/".format(backend_hostname)
4341
try:
4442
result = urllib2.urlopen(url).read()
4543
self.response.write("Got response {}".format(result))
4644
except urllib2.URLError:
4745
pass
48-
# [END access_another_module]
46+
# [END gae_standard_modules_access_another_module]
4947

5048

5149
app = webapp2.WSGIApplication(

0 commit comments

Comments
 (0)