We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3011481 commit 33bf841Copy full SHA for 33bf841
packages/google-cloud-firestore/google/cloud/firestore_v1/field_path.py
@@ -14,10 +14,7 @@
14
15
"""Utilities for managing / converting field paths to / from strings."""
16
17
-try:
18
- from collections import abc as collections_abc
19
-except ImportError: # Python 2.7
20
- import collections as collections_abc
+from collections import abc
21
22
import re
23
@@ -232,7 +229,7 @@ def get_nested_value(field_path, data):
232
229
233
230
nested_data = data
234
231
for index, field_name in enumerate(field_names):
235
- if isinstance(nested_data, collections_abc.Mapping):
+ if isinstance(nested_data, abc.Mapping):
236
if field_name in nested_data:
237
nested_data = nested_data[field_name]
238
else:
0 commit comments