Skip to content

Commit 7cb1c6d

Browse files
jlara310Mariatta
andauthored
Update main for Python 3. Use .items() instead of .iteritems() (GoogleCloudPlatform#7901)
Co-authored-by: Mariatta Wijaya <Mariatta@users.noreply.github.com>
1 parent e4a0651 commit 7cb1c6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datastore/cloud-client/snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,8 +991,8 @@ def index_merge_queries(client):
991991
def main(project_id):
992992
client = datastore.Client(project_id)
993993

994-
for name, function in globals().iteritems():
995-
if name in ("main", "defaultdict") or not callable(function):
994+
for name, function in globals().items():
995+
if name in ("main", "_preamble", "defaultdict") or not callable(function):
996996
continue
997997

998998
print(name)

0 commit comments

Comments
 (0)