Skip to content

Commit 0ee10cc

Browse files
authored
Update temp variable name from st to parsed_time
1 parent 4f9468d commit 0ee10cc

File tree

1 file changed

+6
-2
lines changed
  • packages/google-cloud-ndb/google/cloud/ndb

1 file changed

+6
-2
lines changed

packages/google-cloud-ndb/google/cloud/ndb/_gql.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,16 @@ def _time_function(values):
777777
value = values[0]
778778
if isinstance(value, str):
779779
try:
780-
st = time.strptime(value, "%H:%M:%S")
780+
parsed_time = time.strptime(value, "%H:%M:%S")
781781
except ValueError as error:
782782
_raise_cast_error(
783783
"Error during time conversion, {}, {}".format(error, values)
784784
)
785-
t_tuple = (st.tm_hour, st.tm_min, st.tm_sec)
785+
t_tuple = (
786+
parsed_time.tm_hour,
787+
parsed_time.tm_min,
788+
parsed_time.tm_sec,
789+
)
786790
elif isinstance(value, int):
787791
t_tuple = (value,)
788792
else:

0 commit comments

Comments
 (0)