@@ -349,11 +349,7 @@ class Person(Model):
349349GeoPt = helpers .GeoPoint
350350Rollback = exceptions .Rollback
351351
352-
353- try :
354- _getfullargspec = inspect .getfullargspec
355- except AttributeError : # pragma: NO PY3 COVER
356- _getfullargspec = inspect .getargspec
352+ _getfullargspec = inspect .getfullargspec
357353
358354
359355class KindError (exceptions .BadValueError ):
@@ -3064,9 +3060,9 @@ def _from_base_type(self, value):
30643060 Returns:
30653061 Any: The unpickled ``value``.
30663062 """
3067- if six . PY3 and type (value ) is bytes : # pragma: NO BRANCH
3068- return pickle .loads (value , encoding = "bytes" ) # pragma: NO PY2 COVER
3069- return pickle .loads (value ) # pragma: NO PY3 COVER
3063+ if type (value ) is bytes : # pragma: NO BRANCH
3064+ return pickle .loads (value , encoding = "bytes" )
3065+ return pickle .loads (value ) # pragma: NO COVER
30703066
30713067
30723068class JsonProperty (BlobProperty ):
@@ -3313,7 +3309,7 @@ def __eq__(self, other):
33133309 return self ._email == other ._email and self ._auth_domain == other ._auth_domain
33143310
33153311 def __lt__ (self , other ):
3316- if not isinstance (other , User ): # pragma: NO PY2 COVER
3312+ if not isinstance (other , User ):
33173313 return NotImplemented
33183314
33193315 return (self ._email , self ._auth_domain ) < (
@@ -4907,7 +4903,7 @@ def __init__(_self, **kwargs):
49074903
49084904 def _get_property_for (self , p , indexed = True , depth = 0 ):
49094905 """Internal helper to get the Property for a protobuf-level property."""
4910- if isinstance (p .name (), six .text_type ): # pragma: NO PY2 COVER
4906+ if isinstance (p .name (), six .text_type ):
49114907 p .set_name (bytes (p .name (), encoding = "utf-8" ))
49124908 parts = p .name ().decode ().split ("." )
49134909 if len (parts ) <= depth :
0 commit comments