@@ -329,14 +329,14 @@ def __reduce__(self):
329329 func = self .func
330330 modname = getattr (func , '__module__' , None )
331331 qualname = getattr (func , '__qualname__' , None )
332- if qualname is None :
332+ if qualname is None : # pragma: py3 no cover
333333 qualname = getattr (func , '__name__' , None )
334334 is_decorated = None
335335 if modname and qualname :
336336 attrs = []
337337 obj = import_module (modname )
338338 for attr in qualname .split ('.' ):
339- if isinstance (obj , curry ):
339+ if isinstance (obj , curry ): # pragma: py2 no cover
340340 attrs .append ('func' )
341341 obj = obj .func
342342 obj = getattr (obj , attr , None )
@@ -351,7 +351,8 @@ def __reduce__(self):
351351 # functools.partial objects can't be pickled
352352 userdict = tuple ((k , v ) for k , v in self .__dict__ .items ()
353353 if k != '_partial' )
354- state = (type (self ), func , self .args , self .keywords , userdict , is_decorated )
354+ state = (type (self ), func , self .args , self .keywords , userdict ,
355+ is_decorated )
355356 return (_restore_curry , state )
356357
357358
0 commit comments