MCPcopy Index your code
hub / github.com/googlemaps/google-maps-services-python / is_string

Function is_string

googlemaps/convert.py:166–172  ·  view source on GitHub ↗

Determines whether the passed value is a string, safe for 2/3.

(val)

Source from the content-addressed store, hash-verified

164
165
166def is_string(val):
167 """Determines whether the passed value is a string, safe for 2/3."""
168 try:
169 basestring
170 except NameError:
171 return isinstance(val, str)
172 return isinstance(val, basestring)
173
174
175def time(arg):

Callers 2

latlngFunction · 0.85
boundsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected