ó àqLc@sédZdZddlZddlZddlZd„Zd„ZeddƒddlZyddlZWn6e k r£yedd ƒWq¤e k rŸq¤XnXye WnBe k rðed d ƒddl Z ddl Z e je _ nXyddlZWne k r!ed d ƒnšXy ejWn%ek rTddUee_[nXy ejWn%ek r‡ddUee_[nXy ejWn%ek rºddUee_[nXyddlZWne k rëeddƒnXy ejWnYek rRejZdekr(de_ndekr@de_nejej_nXyejjWn&ek r‰d„Zeej_nXejjdƒdkr²eddƒneddƒeddƒedd ƒyddl Z Wne k r ed!d"ƒnXy ej!WnVek rmddl Z ye j!e_!Wqnek rid#„Z!e!e_![!qnXnXy ej"Wnek r˜ej#e_"nXejjdƒdk rådd$l$m%Z%d%„Z&ddl Z e&e _&[&ndS(&s\ SCons compatibility package for old Python versions This subpackage holds modules that provide backwards-compatible implementations of various things that we'd like to use in SCons but which only show up in later versions of Python than the early, old version(s) we still support. Other code will not generally reference things in this package through the SCons.compat namespace. The modules included here add things to the builtins namespace or the global module list so that the rest of our code can use the objects and names imported here regardless of Python version. Simply enough, things that go in the builtins name space come from our _scons_builtins module. The rest of the things here will be in individual compatibility modules that are either: 1) suitably modified copies of the future modules that we want to use; or 2) backwards compatible re-implementations of the specific portions of a future module's API that we want to use. GENERAL WARNINGS: Implementations of functions in the SCons.compat modules are *NOT* guaranteed to be fully compliant with these functions in later versions of Python. We are only concerned with adding functionality that we actually use in SCons, so be wary if you lift this code for other uses. (That said, making these more nearly the same as later, official versions is still a desirable goal, we just don't need to be obsessive about it.) We name the compatibility modules with an initial '_scons_' (for example, _scons_subprocess.py is our compatibility module for subprocess) so that we can still try to import the real module name and fall back to our compatibility module if we get an ImportError. The import_as() function defined below loads the module as the "real" name (without the '_scons'), after which all of the "import {module}" statements in the rest of our code will find our pre-loaded compatibility module. sBsrc/engine/SCons/compat/__init__.py 5023 2010/06/14 22:05:46 sconsiÿÿÿÿNcCs5tjjtƒd}tj|tj||gƒŒS(s€ Imports the specified module (from our local directory) as the specified name, returning the loaded module object. i(tostpathtsplitt__file__timpt load_modulet find_module(tmoduletnametdir((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pyt import_asEscCsCy*tj|tj|ƒŒtj|tSXdS(s„ Attempts to import the old module and load it under the new name. Used for purely cosmetic name changes in Python 3.x. N(RRRtsystmodulestTruet ImportErrortFalse(tnewtold((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pyt rename_moduleMs " tbuiltinst __builtin__t_scons_hashlibthashlibt _scons_setstsetst_scons_collectionst collectionss*from UserDict import UserDict as _UserDicts*from UserList import UserList as _UserLists0from UserString import UserString as _UserStringt _scons_iotiotposixs /dev/nulltnttnulcCs"tjj|ƒp!tjj|ƒS(N(RRtexiststislink(R((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pytlexists¢st#SCONS_HORRIBLE_REGRESSION_TEST_HACKtpickletcPickletprofiletcProfiletqueuetQueuetwinregt_winregt_scons_subprocesst subprocesscCs|S(N((tx((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pytinternËs(t ClassTypecCs0t|dƒrtSt|ttfƒr,tStS(Nt__call__(thasattrR t isinstanceR0ttypeR(tobj((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pytcallableàs ('t__doc__t __revision__RR RR Rt_scons_builtinsRRtsett NameErrorRRtSetRtUserDicttAttributeErrort _UserDicttUserListt _UserListt UserStringt _UserStringRtdevnulltbuiltin_module_namest_namesRR"tenvirontgettNoneR-R/tmaxsizetmaxintttypesR0R6(((se/home/als/proj/qrscanner/ext/qrscanner/zxing/scons/scons-local-2.0.0.final.0/SCons/compat/__init__.pyt=s´