B Tsz"asbytes_nested..)hasattrrrr r)xrrrr RscCs2t|dr&t|ttfs&dd|DSt|SdS)Nr1cSsg|] }t|qSr)r )r2r3rrrr4Zsz$asunicode_nested..)r5rrr r )r6rrrr XscCstdk ot|tS)z5 Check whether obj is a pathlib.Path object. N)rr)objrrrr^sr.cCsddl}|j||S)ad Load a module. .. versionadded:: 1.11.2 Parameters ---------- name : str Full module name. fn : str Path to module file. info : tuple, optional Only here for backward compatibility with Python 2.*. Returns ------- mod : module rN)Zimportlib.machinery machinerySourceFileLoader load_module)namefninfo importlibrrrrescCslddl}ddl}|dkr:|j|}|||g\}}}nt||d}z|||||}Wd|X|S)a} Load a module. .. versionadded:: 1.11.2 Parameters ---------- name : str Full module name. fn : str Path to module file. info : tuple, optional Information as returned by `imp.find_module` (suffix, mode, type). Returns ------- mod : module rNr.)impospathdirname find_moduler(r;close)r<r=r>r@rArBZfomodrrrr|s  )r%)r%)N)N)__doc__Z __future__rrr__all__r/Zpathlibr ImportError version_infor intrrrrr rr rrrrrr rr r rrrrrrsV