�ɲɾ�����ӯ�����һ��ˣ��������С���˴��ͣ�������P���ҹ��ñ˽��ά�Բ��������˸߸ԣ�������ơ��ҹ��ñ�����ά�Բ���ˡ���˳^�ӣ������ӡ� ���ͯj�ӣ��ƺ���ӣ� ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!usr/lib64/python2.7/test/__init__.pyc000064400000000174152525630340013307 0ustar00 zfc@sdS(N((((s%/usr/lib64/python2.7/test/__init__.pyttusr/lib64/python2.7/idlelib/__init__.pyc000064400000000657152526327260013747 0ustar00 {fc@s dZdS(sThe idlelib package implements the Idle application. Idle includes an interactive shell and editor. Use the files named idle.* to start Idle. The other files are private implementations. Their details are subject to change. See PEP 434 for more. Import them at your own risk. N(t__doc__(((s(/usr/lib64/python2.7/idlelib/__init__.pyttusr/lib64/python2.7/logging/__init__.pyc000064400000160352152526330150013760 0ustar00 {fc%@sdZddlZddlZddlZddlZddlZddlZddlZddlZddddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'g%Z yddl Z Wne k re Z nXyddl Z ddlZWne k r:e Z nXd(Zd)Zd*Zd+ZyeeZWnek rzeZnXd,Zeed-rd.ZnejjejjZejZd/Z d/Z!d/Z"d/Z#d0Z$e$Z%d1Z&d2Z'e'Z(d3Z)d4Z*d5Z+i de$6de&6de'6d e)6de*6de+6e$d6e&d6e'd6e'd6e)d 6e*d6e+d6Z,d6Z-d7Z.d8Z/e rej0Z1ne Z1d9Z2d:Z3de4fd;YZ5d<Z6d e4fd=YZ7e7Z8de4fd>YZ9d e4fd?YZ:d@e4fdAYZ;ej<Z=gZ>dBZ?dCZ@d e;fdDYZAdeAfdEYZBd eBfdFYZCdGe4fdHYZDe aEdIZFdJZGdKe4fdLYZHde;fdMYZIdNeIfdOYZJeIaEde4fdPYZKeJe'ZLeLeI_LeHeIjLeI_MdQZNdRZOe dSZPdTZQeQZRdUZSdVZTdWZUeUZVdXZWdYZXdZZYd[ZZe>d\Z[ddl\Z\e\j]e[deAfd]YZ^e a_e e d^Z`d_ZadS(`s Logging package for Python. Based on PEP 282 and comments thereto in comp.lang.python. Copyright (C) 2001-2014 Vinay Sajip. All Rights Reserved. To use, simply 'import logging' and log away! iNt BASIC_FORMATtBufferingFormattertCRITICALtDEBUGtERRORtFATALt FileHandlertFiltert FormattertHandlertINFOt LogRecordtLoggert LoggerAdaptertNOTSETt NullHandlert StreamHandlertWARNtWARNINGt addLevelNamet basicConfigtcaptureWarningstcriticaltdebugtdisableterrort exceptiontfatalt getLevelNamet getLoggertgetLoggerClasstinfotlogt makeLogRecordtsetLoggerClasstwarntwarnings&Vinay Sajip t productions0.5.1.2s07 February 2010cCs)y tWntjdjjSXdS(s5Return the frame object for the caller's stack frame.iN(t Exceptiontsystexc_infottb_frametf_back(((s(/usr/lib64/python2.7/logging/__init__.pyt currentframe?s t _getframecCs tjdS(Ni(R'R,(((s(/usr/lib64/python2.7/logging/__init__.pytFtii2i(iii icCstj|d|S(s Return the textual representation of logging level 'level'. If the level is one of the predefined levels (CRITICAL, ERROR, WARNING, INFO, DEBUG) then you get the corresponding string. If you have associated levels with names using addLevelName then the name you have associated with 'level' is returned. If a numeric value corresponding to one of the defined levels is passed in, the corresponding string representation is returned. Otherwise, the string "Level %s" % level is returned. sLevel %s(t _levelNamestget(tlevel((s(/usr/lib64/python2.7/logging/__init__.pyRscCs.tz|t|<|t|(RDRKRLRVRE(Rj((s(/usr/lib64/python2.7/logging/__init__.pyt__str__4scCstst|j}nK|j}t|tscyt|j}Wqctk r_|j}qcXn|jr|||j}n|S(s Return the message for this LogRecord. Return the message for this LogRecord after merging any user-supplied arguments with the message. (t_unicodeR8RER5t basestringt UnicodeErrorRI(RjRE((s(/usr/lib64/python2.7/logging/__init__.pyt getMessage8s   N(t__name__t __module__t__doc__RTRnRoRs(((s(/usr/lib64/python2.7/logging/__init__.pyR s  F c Cs5tdddddddd}|jj||S(s Make a LogRecord whose attributes are defined by the specified dictionary, This function is useful for converting a logging event received over a socket connection (which is sent as a dictionary) into a LogRecord instance. R.iN((R RTt__dict__tupdate(tdictR;((s(/usr/lib64/python2.7/logging/__init__.pyR!Ls!cBsMeZdZejZdddZddZdZ dZ dZ RS(s Formatter instances are used to convert a LogRecord to text. Formatters need to know how a LogRecord is constructed. They are responsible for converting a LogRecord to (usually) a string which can be interpreted by either a human or an external system. The base Formatter allows a formatting string to be specified. If none is supplied, the default value of "%s(message)\n" is used. The Formatter can be initialized with a format string which makes use of knowledge of the LogRecord attributes - e.g. the default value mentioned above makes use of the fact that the user's message and arguments are pre- formatted into a LogRecord's message attribute. Currently, the useful attributes in a LogRecord are described by: %(name)s Name of the logger (logging channel) %(levelno)s Numeric logging level for the message (DEBUG, INFO, WARNING, ERROR, CRITICAL) %(levelname)s Text logging level for the message ("DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL") %(pathname)s Full pathname of the source file where the logging call was issued (if available) %(filename)s Filename portion of pathname %(module)s Module (name portion of filename) %(lineno)d Source line number where the logging call was issued (if available) %(funcName)s Function name %(created)f Time when the LogRecord was created (time.time() return value) %(asctime)s Textual time when the LogRecord was created %(msecs)d Millisecond portion of the creation time %(relativeCreated)d Time in milliseconds when the LogRecord was created, relative to the time the logging module was loaded (typically at application startup time) %(thread)d Thread ID (if available) %(threadName)s Thread name (if available) %(process)d Process ID (if available) %(message)s The result of record.getMessage(), computed just as the record is emitted cCs(|r||_n d|_||_dS(s8 Initialize the formatter with specified format strings. Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument (if omitted, you get the ISO8601 format). s %(message)sN(t_fmttdatefmt(RjtfmtR{((s(/usr/lib64/python2.7/logging/__init__.pyRns  cCsV|j|j}|r-tj||}n%tjd|}d||jf}|S(s Return the creation time of the specified LogRecord as formatted text. This method should be called from format() by a formatter which wants to make use of a formatted time. This method can be overridden in formatters to provide for any specific requirement, but the basic behaviour is as follows: if datefmt (a string) is specified, it is used with time.strftime() to format the creation time of the record. Otherwise, the ISO8601 format is used. The resulting string is returned. This function uses a user-configurable function to convert the creation time to a tuple. By default, time.localtime() is used; to change this for a particular formatter instance, set the 'converter' attribute to a function with the same signature as time.localtime() or time.gmtime(). To change it for all formatters, for example if you want all logging times to be shown in GMT, set the 'converter' attribute in the Formatter class. s%Y-%m-%d %H:%M:%Ss%s,%03d(t converterRXRCtstrftimeRY(RjtrecordR{Rltstt((s(/usr/lib64/python2.7/logging/__init__.pyt formatTimes cCshtj}tj|d|d|dd||j}|j|ddkrd|d }n|S(s Format and return the specified exception information as a string. This default implementation just uses traceback.print_exception() iiiis N(t cStringIOtStringIOt tracebacktprint_exceptionRTtgetvaluetclose(RjteitsioR((s(/usr/lib64/python2.7/logging/__init__.pytformatExceptions %   cCs|jjddkS(sK Check if the format uses the creation time of the record. s %(asctime)i(Rztfind(Rj((s(/usr/lib64/python2.7/logging/__init__.pytusesTimescCsA|j|_|jr6|j||j|_ny|j|j}WnVtk r}y)|j j d|_ |j|j}Wqtk r|qXnX|j r|j s|j |j |_ qn|j r=|ddkr|d}ny||j }Wq=tk r9||j j tjd}q=Xn|S(sz Format the specified record as text. The record's attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message. sutf-8is treplace(RstmessageRRR{tasctimeRzRwtUnicodeDecodeErrorRDtdecodeR(RURRrR'tgetfilesystemencoding(RjRRte((s(/usr/lib64/python2.7/logging/__init__.pytformats.        N( RtRuRvRCt localtimeR}RTRnRRRR(((s(/usr/lib64/python2.7/logging/__init__.pyR[s(    cBs5eZdZddZdZdZdZRS(sB A formatter suitable for formatting a number of records. cCs|r||_n t|_dS(sm Optionally specify a formatter which will be used to format each individual record. N(tlinefmtt_defaultFormatter(RjR((s(/usr/lib64/python2.7/logging/__init__.pyRns cCsdS(sE Return the header string for the specified records. R.((Rjtrecords((s(/usr/lib64/python2.7/logging/__init__.pyt formatHeaderscCsdS(sE Return the footer string for the specified records. R.((RjR((s(/usr/lib64/python2.7/logging/__init__.pyt formatFooter scCsld}t|dkrh||j|}x$|D]}||jj|}q2W||j|}n|S(sQ Format the specified records and return the result as a string. R.i(RFRRRR(RjRR;R((s(/usr/lib64/python2.7/logging/__init__.pyRs N(RtRuRvRTRnRRR(((s(/usr/lib64/python2.7/logging/__init__.pyRs   cBs#eZdZddZdZRS(s Filter instances are used to perform arbitrary filtering of LogRecords. Loggers and Handlers can optionally use Filter instances to filter records as desired. The base filter class only allows events which are below a certain point in the logger hierarchy. For example, a filter initialized with "A.B" will allow events logged by loggers "A.B", "A.B.C", "A.B.C.D", "A.B.D" etc. but not "A.BB", "B.A.B" etc. If initialized with the empty string, all events are passed. R.cCs||_t||_dS(s Initialize a filter. Initialize with the name of the logger which, together with its children, will have its events allowed through the filter. If no name is specified, allow every event. N(RDRFtnlen(RjRD((s(/usr/lib64/python2.7/logging/__init__.pyRn,s cCse|jdkrdS|j|jkr)dS|jj|jd|jdkrQdS|j|jdkS(s Determine if the specified record is to be logged. Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place. iit.(RRDR(RjR((s(/usr/lib64/python2.7/logging/__init__.pytfilter7s$(RtRuRvRnR(((s(/usr/lib64/python2.7/logging/__init__.pyR!s  tFilterercBs2eZdZdZdZdZdZRS(s[ A base class for loggers and handlers which allows them to share common code. cCs g|_dS(sE Initialize the list of filters to be an empty list. N(tfilters(Rj((s(/usr/lib64/python2.7/logging/__init__.pyRnKscCs&||jkr"|jj|ndS(s; Add the specified filter to this handler. N(Rtappend(RjR((s(/usr/lib64/python2.7/logging/__init__.pyt addFilterQscCs&||jkr"|jj|ndS(s@ Remove the specified filter from this handler. N(Rtremove(RjR((s(/usr/lib64/python2.7/logging/__init__.pyt removeFilterXscCs7d}x*|jD]}|j|sd}PqqW|S(s Determine if a record is loggable by consulting all the filters. The default is to allow the record to be logged; any filter can veto this and the record is then dropped. Returns a zero value if a record is to be dropped, else non-zero. ii(RR(RjRR;tf((s(/usr/lib64/python2.7/logging/__init__.pyR_s (RtRuRvRnRRR(((s(/usr/lib64/python2.7/logging/__init__.pyRFs    cCswttt}}}|rs|rs|rsy6|z ||krO|j|nWd|XWqstk roqsXndS(sD Remove a handler reference from the internal cleanup list. N(R2R3t _handlerListRR:(twrR>R?thandlers((s(/usr/lib64/python2.7/logging/__init__.pyt_removeHandlerRefus   cCs3tztjtj|tWdtXdS(sL Add a handler to the internal cleanup list using a weak reference. N(R2RRtweakreftrefRR3(thandler((s(/usr/lib64/python2.7/logging/__init__.pyt_addHandlerRefscBseZdZedZdZdZeeeZdZ dZ dZ dZ dZ d Zd Zd Zd Zd ZdZRS(sq Handler instances dispatch logging events to specific destinations. The base handler class. Acts as a placeholder which defines the Handler interface. Handlers can optionally use Formatter instances to format records as desired. By default, no formatter is specified; in this case, the 'raw' message as determined by record.message is logged. cCsFtj|d|_t||_d|_t||jdS(sz Initializes the instance - basically setting the formatter to None and the filter list to empty. N( RRnRTt_nameR<R1t formatterRt createLock(RjR1((s(/usr/lib64/python2.7/logging/__init__.pyRns     cCs|jS(N(R(Rj((s(/usr/lib64/python2.7/logging/__init__.pytget_namescCsRtz<|jtkr&t|j=n||_|rB|t|(Rj((s(/usr/lib64/python2.7/logging/__init__.pyR>s cCs|jr|jjndS(s. Release the I/O thread lock. N(RR?(Rj((s(/usr/lib64/python2.7/logging/__init__.pyR?s cCst||_dS(s8 Set the logging level of this handler. N(R<R1(RjR1((s(/usr/lib64/python2.7/logging/__init__.pytsetLevelscCs(|jr|j}nt}|j|S(s Format the specified record. If a formatter is set, use it. Otherwise, use the default formatter for the module. (RRR(RjRR|((s(/usr/lib64/python2.7/logging/__init__.pyRs  cCstddS(s Do whatever it takes to actually log the specified logging record. This version is intended to be implemented by subclasses and so raises a NotImplementedError. s.emit must be implemented by Handler subclassesN(tNotImplementedError(RjR((s(/usr/lib64/python2.7/logging/__init__.pytemitscCsE|j|}|rA|jz|j|Wd|jXn|S(s< Conditionally emit the specified logging record. Emission depends on filters which may have been added to the handler. Wrap the actual emission of the record with acquisition/release of the I/O thread lock. Returns whether the filter passed the record for emission. N(RR>RR?(RjRR;((s(/usr/lib64/python2.7/logging/__init__.pythandles  cCs ||_dS(s5 Set the formatter for this handler. N(R(RjR|((s(/usr/lib64/python2.7/logging/__init__.pyt setFormatterscCsdS(s Ensure all logging output has been flushed. This version does nothing and is intended to be implemented by subclasses. N((Rj((s(/usr/lib64/python2.7/logging/__init__.pytflush scCs?tz)|jr/|jtkr/t|j=nWdtXdS(s% Tidy up any resources used by the handler. This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods. N(R2RRR3(Rj((s(/usr/lib64/python2.7/logging/__init__.pyRs cCstrtjrtj}zdyLtj|d|d|ddtjtjjd|j|j fWnt k r}nXWd~XndS(sD Handle errors which occur during an emit() call. This method should be called from handlers when an exception is encountered during an emit() call. If raiseExceptions is false, exceptions get silently ignored. This is what is mostly wanted for a logging system - most users will not care about errors in the logging system, they are more interested in application errors. You could, however, replace this with a custom handler if you wish. The record which was being processed is passed in to this method. iiisLogged from file %s, line %s N( traiseExceptionsR'tstderrR(RRRTtwriteRPRVtIOError(RjRR((s(/usr/lib64/python2.7/logging/__init__.pyt handleError#s     (RtRuRvRRnRRtpropertyRDRR>R?RRRRRRRR(((s(/usr/lib64/python2.7/logging/__init__.pyR s         cBs,eZdZddZdZdZRS(s A handler class which writes logging records, appropriately formatted, to a stream. Note that this class does not close the stream, as sys.stdout or sys.stderr may be used. cCs2tj||dkr%tj}n||_dS(sb Initialize the handler. If stream is not specified, sys.stderr is used. N(R RnRTR'Rtstream(RjR((s(/usr/lib64/python2.7/logging/__init__.pyRnBs   cCsK|jz/|jr8t|jdr8|jjnWd|jXdS(s% Flushes the stream. RN(R>RRhRR?(Rj((s(/usr/lib64/python2.7/logging/__init__.pyRMs  cCs-y|j|}|j}d}ts;|j||nyt|trt|ddrd}y|j||Wqtk r|j||j |j qXn|j||Wn+t k r|j||j dnX|j Wn-t tfk rn|j|nXdS(s Emit a record. If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an 'encoding' attribute, it is used to determine how to do the output to the stream. s%s tencodingu%s sUTF-8N(RRRpRR5tunicodetgetattrRTtUnicodeEncodeErrortencodeRRrRtKeyboardInterruptt SystemExitR(RjRRERtfstufs((s(/usr/lib64/python2.7/logging/__init__.pyRXs,   $ N(RtRuRvRTRnRR(((s(/usr/lib64/python2.7/logging/__init__.pyR;s cBs;eZdZddddZdZdZdZRS(sO A handler class which writes formatted logging records to disk files. taicCs~tdkrd}ntjj||_||_||_||_|rdt j |d|_ nt j ||j dS(sO Open the specified file and use it as the stream for logging. N(tcodecsRTRMRNtabspatht baseFilenametmodeRtdelayR RnRRt_open(RjRPRRR((s(/usr/lib64/python2.7/logging/__init__.pyRns       cCs|jzezP|jr\z|jWd|j}d|_t|drX|jnXnWdtj|XWd|jXdS(s$ Closes the stream. NR(R>RRRTRhRRR?(RjR((s(/usr/lib64/python2.7/logging/__init__.pyRs    cCsI|jdkr't|j|j}ntj|j|j|j}|S(sx Open the current base file with the (original) mode and encoding. Return the resulting stream. N(RRTtopenRRR(RjR((s(/usr/lib64/python2.7/logging/__init__.pyRscCs5|jdkr!|j|_ntj||dS(s Emit a record. If the stream was not opened because 'delay' was specified in the constructor, open it before calling the superclass's emit. N(RRTRRR(RjR((s(/usr/lib64/python2.7/logging/__init__.pyRsN(RtRuRvRTRnRRR(((s(/usr/lib64/python2.7/logging/__init__.pyRs   t PlaceHoldercBs eZdZdZdZRS(s PlaceHolder instances are used in the Manager logger hierarchy to take the place of nodes for which no loggers have been defined. This class is intended for internal use only and not as part of the public API. cCsid|6|_dS(sY Initialize with the specified logger being a child of this placeholder. N(RTt loggerMap(Rjtalogger((s(/usr/lib64/python2.7/logging/__init__.pyRnscCs#||jkrd|j||tkr4t|ts4td|jq4n|adS(s Set the class to be used when instantiating a logger. The class should define __init__() such that only a name argument is required, and the __init__() should call Logger.__init__() s(logger not derived from logging.Logger: N(R t issubclassR:Rtt _loggerClass(tklass((s(/usr/lib64/python2.7/logging/__init__.pyR"s  cCstS(sB Return the class to be used when instantiating a logger. (R(((s(/usr/lib64/python2.7/logging/__init__.pyRstManagercBs;eZdZdZdZdZdZdZRS(st There is [under normal circumstances] just one Manager instance, which holds the hierarchy of loggers. cCs1||_d|_d|_i|_d|_dS(sT Initialize the manager with the root node of the logger hierarchy. iN(trootRtemittedNoHandlerWarningt loggerDictRTt loggerClass(Rjtrootnode((s(/usr/lib64/python2.7/logging/__init__.pyRns     cCsd}t|ts$tdnt|trE|jd}ntz||jkr|j|}t|tr|}|j pt |}||_ ||j|<|j |||j |qn8|j pt |}||_ ||j|<|j |WdtX|S(s Get a logger with the specified name (channel name), creating it if it doesn't yet exist. This name is a dot-separated hierarchical name, such as "a", "a.b", "a.b.c" or similar. If a PlaceHolder existed for the specified name [i.e. the logger didn't exist but a child of it did], replace it with the created logger and fix up the parent/child references which pointed to the placeholder to now point to the logger. s'A logger name must be string or Unicodesutf-8N(RTR5RqR:RRR2RRRRtmanagert_fixupChildrent _fixupParentsR3(RjRDR;tph((s(/usr/lib64/python2.7/logging/__init__.pyRs,      cCsA|tkr4t|ts4td|jq4n||_dS(sY Set the class to be used when instantiating a logger with this Manager. s(logger not derived from logging.Logger: N(R RR:RtR(RjR((s(/usr/lib64/python2.7/logging/__init__.pyR",s  cCs|j}|jd}d}x|dkr| r|| }||jkrct||j|RRRR9R?R(t handlerListRth((s(/usr/lib64/python2.7/logging/__init__.pytshutdown|s   cBs)eZdZdZdZdZRS(s This handler does nothing. It's intended to be used to avoid the "No handlers could be found for logger XXX" one-off warning. This is important for library code, which may contain code to log events. If a user of the library does not configure logging, the one-off warning might be produced; to avoid this, the library developer simply needs to instantiate a NullHandler and add it to the top-level logger of the library module or package. cCsdS(N((RjR((s(/usr/lib64/python2.7/logging/__init__.pyRscCsdS(N((RjR((s(/usr/lib64/python2.7/logging/__init__.pyRscCs d|_dS(N(RTR(Rj((s(/usr/lib64/python2.7/logging/__init__.pyRs(RtRuRvRRR(((s(/usr/lib64/python2.7/logging/__init__.pyRs   cCs|dk r7tdk rt||||||qnStj|||||}td}|jsz|jtn|jd|dS(s Implementation of showwarnings which redirects to logging, which will first check to see if the file parameter is None. If a file is specified, it will delegate to the original warnings implementation of showwarning. Otherwise, it will call warnings.formatwarning and will log the resulting string to a warnings logger named "py.warnings" with level logging.WARNING. s py.warningss%sN( RTt_warnings_showwarningtwarningst formatwarningRRRRR$(RtcategoryRPRVtfiletlineRR((s(/usr/lib64/python2.7/logging/__init__.pyt _showwarnings    cCsL|r*tdkrHtjatt_qHntdk rHtt_dandS(s If capture is true, redirect all warnings to the logging package. If capture is False, ensure that warnings are not redirected to logging but to their original destinations. N(RRTRt showwarningR(tcapture((s(/usr/lib64/python2.7/logging/__init__.pyRs    (bRvR'RMRCRRRRRGt__all__Rt ImportErrorRTR]R_t __author__t __status__t __version__t__date__RtTrueRpt NameErrortFalseR+RhRNRt__code__RRRZRR\RbRgRRRRRR RRR/RRR<RR=R2R3tobjectR R!RRRRRtWeakValueDictionaryRRRRR RRRRR"RRR R R RRRRRRRRRR$R#RRR RRtatexittregisterRRRR(((s(/usr/lib64/python2.7/logging/__init__.pyts`                k  *%,   GH f `   <            usr/lib64/python2.7/json/__init__.pyc000064400000033146152526470610013311 0ustar00 {fc@s,dZdZddddddgZdZd d lmZd d lmZed ed e de de ddddddddZ ee e e ddddded Z ee e e ddddded Z eddddddZddddddddZddddddddZdS(s JSON (JavaScript Object Notation) is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`json` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of the :mod:`json` library contained in Python 2.6, but maintains compatibility with Python 2.4 and Python 2.5 and (currently) has significant performance advantages, even without using the optional C extension for speedups. Encoding basic Python object hierarchies:: >>> import json >>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}]) '["foo", {"bar": ["baz", null, 1.0, 2]}]' >>> print json.dumps("\"foo\bar") "\"foo\bar" >>> print json.dumps(u'\u1234') "\u1234" >>> print json.dumps('\\') "\\" >>> print json.dumps({"c": 0, "b": 0, "a": 0}, sort_keys=True) {"a": 0, "b": 0, "c": 0} >>> from StringIO import StringIO >>> io = StringIO() >>> json.dump(['streaming API'], io) >>> io.getvalue() '["streaming API"]' Compact encoding:: >>> import json >>> json.dumps([1,2,3,{'4': 5, '6': 7}], sort_keys=True, separators=(',',':')) '[1,2,3,{"4":5,"6":7}]' Pretty printing:: >>> import json >>> print json.dumps({'4': 5, '6': 7}, sort_keys=True, ... indent=4, separators=(',', ': ')) { "4": 5, "6": 7 } Decoding JSON:: >>> import json >>> obj = [u'foo', {u'bar': [u'baz', None, 1.0, 2]}] >>> json.loads('["foo", {"bar":["baz", null, 1.0, 2]}]') == obj True >>> json.loads('"\\"foo\\bar"') == u'"foo\x08ar' True >>> from StringIO import StringIO >>> io = StringIO('["streaming API"]') >>> json.load(io)[0] == 'streaming API' True Specializing JSON object decoding:: >>> import json >>> def as_complex(dct): ... if '__complex__' in dct: ... return complex(dct['real'], dct['imag']) ... return dct ... >>> json.loads('{"__complex__": true, "real": 1, "imag": 2}', ... object_hook=as_complex) (1+2j) >>> from decimal import Decimal >>> json.loads('1.1', parse_float=Decimal) == Decimal('1.1') True Specializing JSON object encoding:: >>> import json >>> def encode_complex(obj): ... if isinstance(obj, complex): ... return [obj.real, obj.imag] ... raise TypeError(repr(obj) + " is not JSON serializable") ... >>> json.dumps(2 + 1j, default=encode_complex) '[2.0, 1.0]' >>> json.JSONEncoder(default=encode_complex).encode(2 + 1j) '[2.0, 1.0]' >>> ''.join(json.JSONEncoder(default=encode_complex).iterencode(2 + 1j)) '[2.0, 1.0]' Using json.tool from the shell to validate and pretty-print:: $ echo '{"json":"obj"}' | python -m json.tool { "json": "obj" } $ echo '{ 1.2:3.4}' | python -m json.tool Expecting property name enclosed in double quotes: line 1 column 3 (char 2) s2.0.9tdumptdumpstloadtloadst JSONDecodert JSONEncodersBob Ippolito i(R(Rtskipkeyst ensure_asciitcheck_circulart allow_nantindentt separatorstencodingsutf-8tdefaultc Ks| ru|ru|ru|ru|d kru|d kru|d kru| dkru| d kru| ru| rutj|} n`|d krt}n|d|d|d|d|d|d|d| d | d | | j|} x| D]}|j|qWd S( s Serialize ``obj`` as a JSON formatted stream to ``fp`` (a ``.write()``-supporting file-like object). If ``skipkeys`` is true then ``dict`` keys that are not basic types (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``) will be skipped instead of raising a ``TypeError``. If ``ensure_ascii`` is true (the default), all non-ASCII characters in the output are escaped with ``\uXXXX`` sequences, and the result is a ``str`` instance consisting of ASCII characters only. If ``ensure_ascii`` is false, some chunks written to ``fp`` may be ``unicode`` instances. This usually happens because the input contains unicode strings or the ``encoding`` parameter is used. Unless ``fp.write()`` explicitly understands ``unicode`` (as in ``codecs.getwriter``) this is likely to cause an error. If ``check_circular`` is false, then the circular reference check for container types will be skipped and a circular reference will result in an ``OverflowError`` (or worse). If ``allow_nan`` is false, then it will be a ``ValueError`` to serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in strict compliance of the JSON specification, instead of using the JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``). If ``indent`` is a non-negative integer, then JSON array elements and object members will be pretty-printed with that indent level. An indent level of 0 will only insert newlines. ``None`` is the most compact representation. Since the default item separator is ``', '``, the output might include trailing whitespace when ``indent`` is specified. You can use ``separators=(',', ': ')`` to avoid this. If ``separators`` is an ``(item_separator, dict_separator)`` tuple then it will be used instead of the default ``(', ', ': ')`` separators. ``(',', ':')`` is the most compact JSON representation. ``encoding`` is the character encoding for str instances, default is UTF-8. ``default(obj)`` is a function that should return a serializable version of obj or raise TypeError. The default simply raises TypeError. If *sort_keys* is true (default: ``False``), then the output of dictionaries will be sorted by key. To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the ``.default()`` method to serialize additional types), specify it with the ``cls`` kwarg; otherwise ``JSONEncoder`` is used. sutf-8RRRR R R R R t sort_keysN(tNonet_default_encodert iterencodeRtwrite(tobjtfpRRRR tclsR R R R Rtkwtiterabletchunk((s%/usr/lib64/python2.7/json/__init__.pyRzs5  $&    c Ks| rp|rp|rp|rp|d krp|d krp|d krp|dkrp| d krp| rp| rptj|S|d krt}n|d|d|d|d|d|d|d|d | d | | j|S( sSerialize ``obj`` to a JSON formatted ``str``. If ``skipkeys`` is true then ``dict`` keys that are not basic types (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``) will be skipped instead of raising a ``TypeError``. If ``ensure_ascii`` is false, all non-ASCII characters are not escaped, and the return value may be a ``unicode`` instance. See ``dump`` for details. If ``check_circular`` is false, then the circular reference check for container types will be skipped and a circular reference will result in an ``OverflowError`` (or worse). If ``allow_nan`` is false, then it will be a ``ValueError`` to serialize out of range ``float`` values (``nan``, ``inf``, ``-inf``) in strict compliance of the JSON specification, instead of using the JavaScript equivalents (``NaN``, ``Infinity``, ``-Infinity``). If ``indent`` is a non-negative integer, then JSON array elements and object members will be pretty-printed with that indent level. An indent level of 0 will only insert newlines. ``None`` is the most compact representation. Since the default item separator is ``', '``, the output might include trailing whitespace when ``indent`` is specified. You can use ``separators=(',', ': ')`` to avoid this. If ``separators`` is an ``(item_separator, dict_separator)`` tuple then it will be used instead of the default ``(', ', ': ')`` separators. ``(',', ':')`` is the most compact JSON representation. ``encoding`` is the character encoding for str instances, default is UTF-8. ``default(obj)`` is a function that should return a serializable version of obj or raise TypeError. The default simply raises TypeError. If *sort_keys* is true (default: ``False``), then the output of dictionaries will be sorted by key. To use a custom ``JSONEncoder`` subclass (e.g. one that overrides the ``.default()`` method to serialize additional types), specify it with the ``cls`` kwarg; otherwise ``JSONEncoder`` is used. sutf-8RRRR R R R R RN(RRtencodeR( RRRRR RR R R R RR((s%/usr/lib64/python2.7/json/__init__.pyRs/  $&    t object_hooktobject_pairs_hookc Ks=t|jd|d|d|d|d|d|d||S(sDeserialize ``fp`` (a ``.read()``-supporting file-like object containing a JSON document) to a Python object. If the contents of ``fp`` is encoded with an ASCII based encoding other than utf-8 (e.g. latin-1), then an appropriate ``encoding`` name must be specified. Encodings that are not ASCII based (such as UCS-2) are not allowed, and should be wrapped with ``codecs.getreader(fp)(encoding)``, or simply decoded to a ``unicode`` object and passed to ``loads()`` ``object_hook`` is an optional function that will be called with the result of any object literal decode (a ``dict``). The return value of ``object_hook`` will be used instead of the ``dict``. This feature can be used to implement custom decoders (e.g. JSON-RPC class hinting). ``object_pairs_hook`` is an optional function that will be called with the result of any object literal decoded with an ordered list of pairs. The return value of ``object_pairs_hook`` will be used instead of the ``dict``. This feature can be used to implement custom decoders that rely on the order that the key and value pairs are decoded (for example, collections.OrderedDict will remember the order of insertion). If ``object_hook`` is also defined, the ``object_pairs_hook`` takes priority. To use a custom ``JSONDecoder`` subclass, specify it with the ``cls`` kwarg; otherwise ``JSONDecoder`` is used. R RRt parse_floatt parse_inttparse_constantR(Rtread( RR RRRRRRR((s%/usr/lib64/python2.7/json/__init__.pyRs   c Ks|dkrh|dkrh|dkrh|dkrh|dkrh|dkrh|dkrh| rhtj|S|dkr}t}n|dk r||dcs6     E  ;  # usr/lib64/python2.7/pydoc_data/__init__.pyc000064400000000202152527033350014427 0ustar00 |fc@sdS(N((((s+/usr/lib64/python2.7/pydoc_data/__init__.pyttusr/lib64/python2.7/xml/sax/__init__.pyc000064400000007241152527127650013734 0ustar00 {fc@sjdZddlmZddlmZmZddlmZmZm Z m Z m Z edZ edZ dgZdZerdd lZndd lZdd lZejj rd ejkrejd jd Zn[d Zejd dkr/ejjer/ejjejd ZngdZejd dkrZdZn dZ[d S(sSimple API for XML (SAX) implementation for Python. This module provides an implementation of the SAX 2 interface; information about the Java version of the interface can be found at http://www.megginson.com/SAX/. The Python version of the interface is documented at <...>. This package contains the following modules: handler -- Base classes and constants which define the SAX 2 API for the 'client-side' of SAX for Python. saxutils -- Implementation of the convenience classes commonly used to work with SAX. xmlreader -- Base classes and constants which define the SAX 2 API for the parsers used with SAX for Python. expatreader -- Driver that allows use of the Expat parser with SAX. i(t InputSource(tContentHandlert ErrorHandler(t SAXExceptiontSAXNotRecognizedExceptiontSAXParseExceptiontSAXNotSupportedExceptiontSAXReaderNotAvailablecCs4t}|j||j||j|dS(N(t make_parsertsetContentHandlertsetErrorHandlertparse(tsourcethandlert errorHandlertparser((s(/usr/lib64/python2.7/xml/sax/__init__.pyR s   cCsyddlm}Wn!tk r7ddlm}nX|dkrPt}nt}|j||j|t}|j |||j |dS(Ni(tStringIO( t cStringIORt ImportErrortNoneRRR R Rt setByteStreamR (tstringR RRRtinpsrc((s(/usr/lib64/python2.7/xml/sax/__init__.pyt parseString#s       sxml.sax.expatreaderiNt PY_SAX_PARSERt,spython.xml.sax.parseritjavacCs}xg|tD][}yt|SWq tk rU}ddl}||jkrfqfq tk req Xq WtdddS(s&Creates and returns a SAX parser. Creates the first parser it is able to instantiate of the ones given in the list created by doing parser_list + default_parser_list. The lists must contain the names of Python modules containing both a SAX parser and a create_parser function.iNsNo parsers found(tdefault_parser_listt_create_parserRtsystmodulesRR(t parser_listt parser_nameteR((s(/usr/lib64/python2.7/xml/sax/__init__.pyRGs   cCs2ddlm}|j|dt}|jS(Ni(timpi(torg.python.coreR"t importNametglobalst create_parser(R R"t drv_module((s(/usr/lib64/python2.7/xml/sax/__init__.pyRbscCs"t|iidg}|jS(NR&(t __import__R&(R R'((s(/usr/lib64/python2.7/xml/sax/__init__.pyRhs(t__doc__t xmlreaderRR RRt _exceptionsRRRRRR RRt_falsetxml.sax.expatreadertxmltosRtflagstignore_environmenttenvirontsplitt_keytplatformtregistryt containsKeyt getPropertyRR(((s(/usr/lib64/python2.7/xml/sax/__init__.pyts*( %   usr/lib64/python2.7/sqlite3/__init__.pyc000064400000000244152527312740013715 0ustar00 {fc@sddlTdS(i(t*N(tdbapi2(((s(/usr/lib64/python2.7/sqlite3/__init__.pyttusr/lib64/python2.7/xml/dom/__init__.pyc000064400000014517152527534110013715 0ustar00 {fc@s:dZdd=dYZdZdZdZdZdZdZd Zd Z d Z d Z d Z dZ dZdZdZdZdefdYZdefdYZdefdYZdefdYZdefdYZdefdYZdefd YZd!efd"YZd#efd$YZd%efd&YZd'efd(YZd)efd*YZd+efd,YZd-efd.YZ d/efd0YZ!d1efd2YZ"d3efd4YZ#d5d>d6YZ$d7Z%d8Z&d9Z'd<Z)d<Z*d:d;l+m,Z,m-Z-d<S(?s W3C Document Object Model implementation for Python. The Python mapping of the Document Object Model is documented in the Python Library Reference in the section on the xml.dom package. This package contains the following modules: minidom -- A simple implementation of the Level 1 DOM with namespace support added (based on the Level 2 specification) and other minor Level 2 functionality. pulldom -- DOM builder supporting on-demand tree-building for selected subtrees of the document. tNodecBsVeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d ZRS( s$Class giving the NodeType constants.iiiiiiiii i i i (t__name__t __module__t__doc__t ELEMENT_NODEtATTRIBUTE_NODEt TEXT_NODEtCDATA_SECTION_NODEtENTITY_REFERENCE_NODEt ENTITY_NODEtPROCESSING_INSTRUCTION_NODEt COMMENT_NODEt DOCUMENT_NODEtDOCUMENT_TYPE_NODEtDOCUMENT_FRAGMENT_NODEt NOTATION_NODE(((s(/usr/lib64/python2.7/xml/dom/__init__.pyRs iiiiiiiii i i i i iiit DOMExceptioncBs eZdZdZdZRS(smAbstract base class for DOM exceptions. Exceptions with specific codes are specializations of this class.cOs5|jtkrtdntj|||dS(Ns0DOMException should not be instantiated directly(t __class__Rt RuntimeErrort Exceptiont__init__(tselftargstkw((s(/usr/lib64/python2.7/xml/dom/__init__.pyRAs cCs|jS(N(tcode(R((s(/usr/lib64/python2.7/xml/dom/__init__.pyt _get_codeGs(RRRRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR=s t IndexSizeErrcBseZeZRS((RRtINDEX_SIZE_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyRKstDomstringSizeErrcBseZeZRS((RRtDOMSTRING_SIZE_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyRNstHierarchyRequestErrcBseZeZRS((RRtHIERARCHY_REQUEST_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyRQstWrongDocumentErrcBseZeZRS((RRtWRONG_DOCUMENT_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR TstInvalidCharacterErrcBseZeZRS((RRtINVALID_CHARACTER_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR"WstNoDataAllowedErrcBseZeZRS((RRtNO_DATA_ALLOWED_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR$ZstNoModificationAllowedErrcBseZeZRS((RRtNO_MODIFICATION_ALLOWED_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR&]st NotFoundErrcBseZeZRS((RRt NOT_FOUND_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR(`stNotSupportedErrcBseZeZRS((RRtNOT_SUPPORTED_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR*cstInuseAttributeErrcBseZeZRS((RRtINUSE_ATTRIBUTE_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR,fstInvalidStateErrcBseZeZRS((RRtINVALID_STATE_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR.ist SyntaxErrcBseZeZRS((RRt SYNTAX_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR0lstInvalidModificationErrcBseZeZRS((RRtINVALID_MODIFICATION_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR2ost NamespaceErrcBseZeZRS((RRt NAMESPACE_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR4rstInvalidAccessErrcBseZeZRS((RRtINVALID_ACCESS_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR6ust ValidationErrcBseZeZRS((RRtVALIDATION_ERRR(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR8xstUserDataHandlercBs&eZdZdZdZdZdZRS(sBClass giving the operation constants for UserDataHandler.handle().iiii(RRRt NODE_CLONEDt NODE_IMPORTEDt NODE_DELETEDt NODE_RENAMED(((s(/usr/lib64/python2.7/xml/dom/__init__.pyR:{s s$http://www.w3.org/XML/1998/namespaceshttp://www.w3.org/2000/xmlns/shttp://www.w3.org/1999/xhtmli(tgetDOMImplementationtregisterDOMImplementationN(((.RRRRRR!R#R%R'R)R+R-R/R1R3R5R7R9RRRRRR R"R$R&R(R*R,R.R0R2R4R6R8R:t XML_NAMESPACEtXMLNS_NAMESPACEtXHTML_NAMESPACEtNonetEMPTY_NAMESPACEt EMPTY_PREFIXtdomregR?R@(((s(/usr/lib64/python2.7/xml/dom/__init__.pytsR usr/lib64/python2.7/email/mime/__init__.pyc000064400000000202152527602110014332 0ustar00 {fc@sdS(N((((s+/usr/lib64/python2.7/email/mime/__init__.pyttusr/lib64/python2.7/unittest/test/__init__.pyc000064400000001612152527713110015163 0ustar00 {fc@skddlZddlZddlZejjeZejZdZ e dkrgej ddndS(iNcCstj}xstjtD]b}|jdr|jdrd|d }t|tj |}|j t j |qqW|S(Nttests.pysunittest.test.i( tunittestt TestSuitetostlistdirtheret startswithtendswitht __import__tsystmodulestaddTesttloadertloadTestsFromModule(tsuitetfntmodnametmodule((s./usr/lib64/python2.7/unittest/test/__init__.pyR s   t__main__t defaultTestR( RR Rtpathtdirnamet__file__RtdefaultTestLoaderR Rt__name__tmain(((s./usr/lib64/python2.7/unittest/test/__init__.pyts     usr/lib64/python2.7/lib2to3/pgen2/__init__.pyc000064400000000256152530140050014610 0ustar00 {fc@s dZdS(sThe pgen2 package.N(t__doc__(((s./usr/lib64/python2.7/lib2to3/pgen2/__init__.pyttusr/lib64/python2.7/hotshot/__init__.pyc000064400000006634152530264740014032 0ustar00 {fc@sYdZddlZddlmZddlmZeddddd d YZdS( s6High-perfomance logging profiler, mostly written in C.iN(t ProfilerError(twarnpy3ksOThe 'hotshot' module is not supported in 3.x, use the 'profile' module instead.t stacklevelitProfilecBs_eZdddZdZdZdZdZdZdZd Z d Z RS( iicCs|r dpd|_|r'|r'dp*d|_tj||j|j|_}|jtkr|j|_|j|_|j |_ |j |_ ndS(Nii( t lineeventst linetimingst_hotshottprofilert_proft __class__Rtclosetstarttstoptaddinfo(tselftlogfnRRtp((s(/usr/lib64/python2.7/hotshot/__init__.pyt__init__ s   cCs|jjdS(s-Close the logfile and terminate the profiler.N(RR (R((s(/usr/lib64/python2.7/hotshot/__init__.pyR scCs |jjS(s6Return the file descriptor of the profiler's log file.(Rtfileno(R((s(/usr/lib64/python2.7/hotshot/__init__.pyRscCs|jjdS(sStart the profiler.N(RR (R((s(/usr/lib64/python2.7/hotshot/__init__.pyR "scCs|jjdS(sStop the profiler.N(RR (R((s(/usr/lib64/python2.7/hotshot/__init__.pyR &scCs|jj||dS(s3Add an arbitrary labelled value to the profile log.N(RR (Rtkeytvalue((s(/usr/lib64/python2.7/hotshot/__init__.pyR *scCs(ddl}|j}|j|||S(sProfile an exec-compatible string in the script environment. The globals from the __main__ module are used as both the globals and locals for the script. iN(t__main__t__dict__trunctx(RtcmdRtdict((s(/usr/lib64/python2.7/hotshot/__init__.pytrun1s  cCs,t|dd}|jj||||S(sEvaluate an exec-compatible string in a specific environment. The string is compiled before profiling begins. stexec(tcompileRtruncode(RRtglobalstlocalstcode((s(/usr/lib64/python2.7/hotshot/__init__.pyR<scOs|jj|||S(sProfile a single call of a callable. Additional positional and keyword arguments may be passed along; the result of the call is returned, and exceptions are allowed to propagate cleanly, while ensuring that profiling is disabled on the way out. (Rtruncall(Rtfunctargstkw((s(/usr/lib64/python2.7/hotshot/__init__.pyR!Fs( t__name__t __module__RR RR R R RRR!(((s(/usr/lib64/python2.7/hotshot/__init__.pyR s      ((t__doc__RRtwarningsRt _warnpy3kR(((s(/usr/lib64/python2.7/hotshot/__init__.pyts   usr/lib64/python2.7/lib2to3/__init__.pyc000064400000000177152530476160013615 0ustar00 {fc@sdS(N((((s(/usr/lib64/python2.7/lib2to3/__init__.pyttusr/lib/python2.7/site-packages/setuptools/__init__.pyc000064400000016711152531316370017124 0ustar00 fc@sdZddlZddlZddlZddlZddlmZddlm Z ddl m Z m Z ddl ZddlmZddlmZmZddlmZd d lmZd d d ddddgZejjZdZeZdgZde fdYZ!de!fdYZ"e!j#Z$dZ%dZ&ej'j&je&_ej(ej'j)Z*de*fdYZ)dZ+ej,dZ-ej.dS(s@Extensions to the 'distutils' for large or complex distributionsiN(t convert_path(t fnmatchcase(tfiltertmap(t Extension(t DistributiontFeature(tRequirei(tmonkeytsetupRRtCommandRRt find_packagess lib2to3.fixest PackageFindercBsSeZdZeddddZedZedZedZRS( sI Generate a list of all Python packages found within a directory t.t*cCs7t|jt||jdd||j|S(s Return a list all Python packages found within directory 'where' 'where' is the root directory which will be searched for packages. It should be supplied as a "cross-platform" (i.e. URL-style) path; it will be converted to the appropriate local path syntax. 'exclude' is a sequence of package names to exclude; '*' can be used as a wildcard in the names, such that 'foo.*' will exclude all subpackages of 'foo' (but not 'foo' itself). 'include' is a sequence of package names to include. If it's specified, only the named packages will be included. If it's not specified, all found packages will be included. 'include' can contain shell style wildcard patterns just like 'exclude'. tez_setups *__pycache__(tlistt_find_packages_iterRt _build_filter(tclstwheretexcludetinclude((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pytfind's  c csxtj|dtD]\}}}|}g|(x|D]}tjj||} tjj| |} | jtjjd} d|ks:|j|  rq:n|| r||  r| Vn|j |q:WqWdS(sy All the packages found in 'where' that pass the 'include' filter, but not the 'exclude' filter. t followlinksR N( tostwalktTruetpathtjointrelpathtreplacetsept_looks_like_packagetappend( RRRRtroottdirstfilestall_dirstdirt full_pathtrel_pathtpackage((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR>s% cCstjjtjj|dS(s%Does a directory look like a package?s __init__.py(RRtisfileR(R((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR!Zscs fdS(s Given a list of patterns, return a callable that will be true only if the input matches at least one of the patterns. cstfdDS(Nc3s!|]}td|VqdS(tpatN(R(t.0R,(tname(s7/usr/lib/python2.7/site-packages/setuptools/__init__.pys es(tany(R.(tpatterns(R.s7/usr/lib/python2.7/site-packages/setuptools/__init__.pytet((R0((R0s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR_s((R( t__name__t __module__t__doc__t classmethodRRt staticmethodR!R(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR "s tPEP420PackageFindercBseZedZRS(cCstS(N(R(R((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR!is(R3R4R7R!(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR8hscCsXtjjtd|jD}|jdt|jrT|j|jndS(Ncss-|]#\}}|dkr||fVqdS(tdependency_linkstsetup_requiresN(R9R:((R-tktv((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pys us tignore_option_errors( t distutilstcoreRtdicttitemstparse_config_filesRR:tfetch_build_eggs(tattrstdist((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyt_install_setup_requiresqs   cKst|tjj|S(N(RFR>R?R (RD((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR ~s cBs,eZejZeZdZddZRS(cKs'tj||t|j|dS(sj Construct the command for dist, updating vars(self) with any keyword parameters. N(t_Commandt__init__tvarstupdate(tselfREtkw((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyRHsicKs,tj|||}t|j||S(N(RGtreinitialize_commandRIRJ(RKtcommandtreinit_subcommandsRLtcmd((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyRMs(R3R4RGR5tFalsetcommand_consumes_argumentsRHRM(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyR s  cCs2dtj|dtD}ttjj|S(s% Find all files under 'path' css:|]0\}}}|D]}tjj||VqqdS(N(RRR(R-tbaseR$R%tfile((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pys s R(RRRRRR+(Rtresults((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyt_find_all_simplescCsRt|}|tjkrHtjtjjd|}t||}nt|S(s Find all files under 'dir' and return the list of full filenames. Unless dir is '.', return full filenames with dir prepended. tstart( RVRtcurdirt functoolstpartialRRRR(R'R%tmake_rel((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pytfindalls  (/R5RRYtdistutils.coreR>tdistutils.filelisttdistutils.utilRtfnmatchRtsetuptools.extern.six.movesRRtsetuptools.versiont setuptoolstsetuptools.extensionRtsetuptools.distRRtsetuptools.dependsRR2Rt__all__tversiont __version__tNonetbootstrap_install_fromRtrun_2to3_on_docteststlib2to3_fixer_packagestobjectR R8RR RFR R?t get_unpatchedR RGRVRXR\t patch_all(((s7/usr/lib/python2.7/site-packages/setuptools/__init__.pyts:        F    usr/lib64/python2.7/ctypes/__init__.pyc000064400000047344152531463760013660 0ustar00 {fc@sQ dZddlZddlZdZddlmZmZm Z ddlm Z ddlm Z ddlmZ ddlmZmZdd lmZdd lmZee kred ee nejdukrddlmZneZejdkrBejdkrBeejdjdddkrBeZqBnddlmZmZm Z!m"Z#ddZ%ddZ&iZ'dZ(ejdvkrddlm)Z*ddlm+Z,ejd kreZ,niZ-dZ.e.jr*e(jj/dde._q*n"ejdkr*ddlm0Z*nddlm1Z1m2Z2m3Z3m4Z4m5Z5dd lm6Z6m7Z7dd!lm8Z8dd"Z9d#e8fd$YZ:e9e:d%d&e8fd'YZ;e9e;d(e8fd)YZ<e9e<d*e8fd+YZ=e9e=d,e8fd-YZ>e9e>ed.ed/krNe=Z?e>Z@n@d0e8fd1YZ?e9e?d2e8fd3YZ@e9e@d4e8fd5YZAe9eAd6e8fd7YZBe9eBd8e8fd9YZCe1eCe1eBkreBZCned/ed:kr,e=ZDe>ZEn@d;e8fd<YZDe9eDd=e8fd>YZEe9eEd?e8fd@YZFeFeF_GeF_He9eFdAe8fdBYZIeIeI_GeI_He9eIdCe8fdDYZJeJeJ_GeJ_He9eJdEe8fdFYZKe9eKd%dGe8fdHYZLeLZMe9eLdIe8fdJYZNddKlmOZOmPZPmQZQdLZRyddMlmSZSWneTk rneXejdwkreSdNdOn eSdPdQdRe8fdSYZUdTe8fdUYZVddVZWdWZXdXZYdYeZfdZYZ[d[e[fd\YZ\ejdxkrd]e[fd^YZ]dd_lm^Z^m8Z8d`e8fdaYZ_dbe[fdcYZ`nddeZfdeYZaeae[Zbeae\Zcejdykr e\dfdejdZen5ejdgkr2e\dhejfd Zen e\dZeejdzkreae]Zgeae`Zhejd kregjijjZjn egjkjjZjddilmlZlmmZmdddjZnne1e@e1eLkre@Zoe?ZpnNe1e>e1eLkre>Zoe=Zpn'e1eEe1eLkr,eEZoeDZpnddklmqZqmrZrmsZsmtZte(eLeLeLeoeqZue(eLeLe?eoerZvdlZwewe:eLe:e:etZxdmZyewe:eLe?esZzddnZ{yddolm|Z|WneTk rn%Xewe:eLe?e|Z}ddpZ~ejd{krE dqZdrZnddslmZmZeIZeFZxke;e?e=eDgD]WZe1edkr eZqz e1edtkr eZqz e1edkrz eZqz qz Wxke<e@e>eEgD]WZe1edkr eZq e1edtkr$ eZq e1edkr eZq q W[eRdS(|s,create and manipulate C data types in PythoniNs1.1.0(tUniont StructuretArray(t_Pointer(tCFuncPtr(t __version__(t RTLD_LOCALt RTLD_GLOBAL(t ArgumentError(tcalcsizesVersion number mismatchtnttce(t FormatErrortposixtdarwinit.ii(tFUNCFLAG_CDECLtFUNCFLAG_PYTHONAPItFUNCFLAG_USE_ERRNOtFUNCFLAG_USE_LASTERRORcCst|ttfrT|dkr4t|d}nt|}|}||_|St|ttfrt|}|}|St |dS(screate_string_buffer(aString) -> character array create_string_buffer(anInteger) -> character array create_string_buffer(aString, anInteger) -> character array iN( t isinstancetstrtunicodetNonetlentc_chartvaluetinttlongt TypeError(tinittsizetbuftypetbuf((s'/usr/lib64/python2.7/ctypes/__init__.pytcreate_string_buffer1s      cCs t||S(N(R"(RR((s'/usr/lib64/python2.7/ctypes/__init__.pytc_bufferCscst|jdtr%tOn|jdtrDtOn|rctd|jnytfSWnGtk rdt ffdY}|tf<|SXdS(sCFUNCTYPE(restype, *argtypes, use_errno=False, use_last_error=False) -> function prototype. restype: the result type argtypes: a sequence specifying the argument types The function prototype can be called in different ways to create a callable object: prototype(integer address) -> foreign function prototype(callable) -> create and return a C callable function from callable prototype(integer index, method name[, paramflags]) -> foreign function calling a COM method prototype((ordinal number, dll object)[, paramflags]) -> foreign function exported by ordinal prototype((function name, dll object)[, paramflags]) -> foreign function exported by name t use_errnotuse_last_errors!unexpected keyword argument(s) %st CFunctionTypecseZZZZRS((t__name__t __module__t _argtypes_t _restype_t_flags_((targtypestflagstrestype(s'/usr/lib64/python2.7/ctypes/__init__.pyR&esN( t_FUNCFLAG_CDECLtpoptFalset_FUNCFLAG_USE_ERRNOt_FUNCFLAG_USE_LASTERRORt ValueErrortkeyst_c_functype_cachetKeyErrort _CFuncPtr(R.R,tkwR&((R,R-R.s'/usr/lib64/python2.7/ctypes/__init__.pyt CFUNCTYPEKs   "(t LoadLibrary(tFUNCFLAG_STDCALLcst|jdtr%tOn|jdtrDtOn|rctd|jnytfSWnGtk rdt ffdY}|tf<|SXdS(NR$R%s!unexpected keyword argument(s) %stWinFunctionTypecseZZZZRS((R'R(R)R*R+((R,R-R.(s'/usr/lib64/python2.7/ctypes/__init__.pyR=s( t_FUNCFLAG_STDCALLR0R1R2R3R4R5t_win_functype_cacheR7R8(R.R,R9R=((R,R-R.s'/usr/lib64/python2.7/ctypes/__init__.pyt WINFUNCTYPEts   "R:R@(tdlopen(tsizeoftbyreft addressoft alignmenttresize(t get_errnot set_errno(t _SimpleCDatacCsmddlm}|dkr(|j}nt|||}}||kritd|||fndS(Ni(R s"sizeof(%s) wrong: %d instead of %d(tstructR Rt_type_RBt SystemError(ttypttypecodeR tactualtrequired((s'/usr/lib64/python2.7/ctypes/__init__.pyt _check_sizes   t py_objectcBseZdZdZRS(tOcCs=ytt|jSWntk r8dt|jSXdS(Ns %s()(tsuperRRt__repr__R4ttypeR'(tself((s'/usr/lib64/python2.7/ctypes/__init__.pyRUs (R'R(RKRU(((s'/usr/lib64/python2.7/ctypes/__init__.pyRRstPtc_shortcBseZdZRS(th(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRYstc_ushortcBseZdZRS(tH(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyR[stc_longcBseZdZRS(tl(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyR]stc_ulongcBseZdZRS(tL(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyR_stiR^tc_intcBseZdZRS(Ra(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRbstc_uintcBseZdZRS(tI(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRcstc_floatcBseZdZRS(tf(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRestc_doublecBseZdZRS(td(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRgst c_longdoublecBseZdZRS(tg(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRistqt c_longlongcBseZdZRS(Rk(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRlst c_ulonglongcBseZdZRS(tQ(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRmstc_ubytecBseZdZRS(tB(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRostc_bytecBseZdZRS(tb(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRqsRcBseZdZRS(tc(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyRstc_char_pcBs2eZdZejdkr'dZn dZRS(tzR cCsLtjj|ds,d|jj|jfSd|jjt|tjfS(Nis%s(%r)s%s(%s)(twindlltkernel32tIsBadStringPtrAt __class__R'Rtcasttc_void_p(RW((s'/usr/lib64/python2.7/ctypes/__init__.pyRUscCs d|jjt|tjfS(Ns%s(%s)(RyR'RzR{R(RW((s'/usr/lib64/python2.7/ctypes/__init__.pyRUs(R'R(RKt_ostnameRU(((s'/usr/lib64/python2.7/ctypes/__init__.pyRts R{cBseZdZRS(RX(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyR{stc_boolcBseZdZRS(t?(R'R(RK(((s'/usr/lib64/python2.7/ctypes/__init__.pyR~s(tPOINTERtpointert_pointer_type_cachecCsbtjtjtjdkr0tjntjtt _t jtt _t td character array create_unicode_buffer(anInteger) -> character array create_unicode_buffer(aString, anInteger) -> character array iN( RRRRRRRRRR(RRR R!((s'/usr/lib64/python2.7/ctypes/__init__.pytcreate_unicode_buffer!s      cCsptj|ddk r'tdnt|tkrHtdn|j||t|stCDLLcBs\eZdZeZeZdZdZdZ e de e dZ dZdZdZRS(sAn instance of this class represents a loaded dll/shared library, exporting functions using the standard C calling convention (named 'cdecl' on Windows). The exported functions can be accessed as attributes, or by indexing with the function name. Examples: .qsort -> callable object ['qsort'] -> callable object Calling the functions releases the Python GIL during the call and reacquires it afterwards. sics|_j|r%tOn|r8tOndtffdY}|_|dkrtj|_n |_dS(Nt_FuncPtrcseZZjZRS((R'R(R+t_func_restype_R*((R-RW(s'/usr/lib64/python2.7/ctypes/__init__.pyRcs( t_namet _func_flags_R2R3R8RRt_dlopent_handle(RWR}tmodethandleR$R%R((R-RWs'/usr/lib64/python2.7/ctypes/__init__.pyt__init__Ys      cCsDd|jj|j|jtjdd@t|tjdd@fS(Ns<%s '%s', handle %x at %x>ii(RyR'RRt_systmaxintR(RW((s'/usr/lib64/python2.7/ctypes/__init__.pyRUmscCsP|jdr-|jdr-t|n|j|}t||||S(Nt__(t startswithtendswithtAttributeErrort __getitem__tsetattr(RWR}tfunc((s'/usr/lib64/python2.7/ctypes/__init__.pyt __getattr__ss cCs:|j||f}t|ttfs6||_n|S(N(RRRRR'(RWtname_or_ordinalR((s'/usr/lib64/python2.7/ctypes/__init__.pyRzs N(R'R(t__doc__R/RRbRRRRRt DEFAULT_MODER1RRURR(((s'/usr/lib64/python2.7/ctypes/__init__.pyRDs    tPyDLLcBseZdZeeBZRS(sThis class represents the Python library itself. It allows accessing Python API functions. The GIL is not released, and Python exceptions are handled correctly. (R'R(RR/t_FUNCFLAG_PYTHONAPIR(((s'/usr/lib64/python2.7/ctypes/__init__.pyRstWinDLLcBseZdZeZRS(snThis class represents a dll exporting functions using the Windows stdcall calling convention. (R'R(RR>R(((s'/usr/lib64/python2.7/ctypes/__init__.pyRs(t_check_HRESULTRItHRESULTcBseZdZeZRS(R^(R'R(RKRt_check_retval_(((s'/usr/lib64/python2.7/ctypes/__init__.pyRs tOleDLLcBseZdZeZeZRS(sThis class represents a dll exporting functions using the Windows stdcall calling convention, and returning HRESULT. HRESULT error values are automatically raised as WindowsError exceptions. (R'R(RR>RRR(((s'/usr/lib64/python2.7/ctypes/__init__.pyRst LibraryLoadercBs,eZdZdZdZdZRS(cCs ||_dS(N(t_dlltype(RWtdlltype((s'/usr/lib64/python2.7/ctypes/__init__.pyRscCsB|ddkrt|n|j|}t||||S(Nit_(RRR(RWR}tdll((s'/usr/lib64/python2.7/ctypes/__init__.pyRs cCs t||S(N(tgetattr(RWR}((s'/usr/lib64/python2.7/ctypes/__init__.pyRscCs |j|S(N(R(RWR}((s'/usr/lib64/python2.7/ctypes/__init__.pyR;s(R'R(RRRR;(((s'/usr/lib64/python2.7/ctypes/__init__.pyRs   s python dlltcygwinslibpython%d.%d.dll(tget_last_errortset_last_errorcCsF|dkrt}n|dkr9t|j}nt||S(N(Rt GetLastErrorR tstript WindowsError(tcodetdescr((s'/usr/lib64/python2.7/ctypes/__init__.pytWinErrors    (t _memmove_addrt _memset_addrt_string_at_addrt _cast_addrcs#dtffdY}|S(NR&cseZZZeeBZRS((R'R(R)R*R/RR+((R,R.(s'/usr/lib64/python2.7/ctypes/__init__.pyR&s(R8(R.R,R&((R,R.s'/usr/lib64/python2.7/ctypes/__init__.pyt PYFUNCTYPEscCst|||S(N(t_cast(tobjRM((s'/usr/lib64/python2.7/ctypes/__init__.pyRzscCs t||S(sAstring_at(addr[, size]) -> string Return the string at addr.(t _string_at(tptrR((s'/usr/lib64/python2.7/ctypes/__init__.pyt string_ats(t_wstring_at_addrcCs t||S(sFwstring_at(addr[, size]) -> string Return the string at addr.(t _wstring_at(RR((s'/usr/lib64/python2.7/ctypes/__init__.pyt wstring_atscCsNy"tdttdg}Wntk r6dSX|j|||SdS(Nscomtypes.server.inprocservert*i(t __import__tglobalstlocalst ImportErrortDllGetClassObject(trclsidtriidtppvtccom((s'/usr/lib64/python2.7/ctypes/__init__.pyR s " cCsAy"tdttdg}Wntk r6dSX|jS(Nscomtypes.server.inprocserverRi(RRRRtDllCanUnloadNow(R((s'/usr/lib64/python2.7/ctypes/__init__.pyRs " (tBigEndianStructuretLittleEndianStructurei(R R (R R (R R (R R (R R (R R (R R (RtosR|tsysRRt_ctypesRRRRRR8t_ctypes_versionRRRRJR t _calcsizet ExceptionR}R RtplatformRtunametsplitRR/RRRR2RR3RR"R#R6R:R;RR<R>R?R@treplaceRARBRCRDRERFRGRHRIRQRRRYR[R]R_RbRcReRgRiRlRmRot __ctype_le__t __ctype_be__RqRRtR{tc_voidpR~RRRRRRRRRRRtobjectRRRRRRRtcdlltpydllt dllhandlet pythonapit version_infoRvtoledllRwRtcoredllRRRtc_size_tt c_ssize_tRRRRtmemmovetmemsetRRRzRRRRRRRtctypes._endianRRtc_int8tc_uint8tkindtc_int16tc_int32tc_int64tc_uint16tc_uint32tc_uint64(((s'/usr/lib64/python2.7/ctypes/__init__.pytsJ ) "   !   (                         <           "             usr/lib64/python2.7/unittest/__init__.pyc000064400000005735152531600310014206 0ustar00 {fc@sDdZddddddddd d d d d dddddgZejdddgeZddlmZddlmZm Z m Z m Z m Z m Z mZmZmZddlmZmZddlmZmZmZmZmZddlmZmZddlmZmZddlm Z m!Z!m"Z"m#Z#eZ$dS(s Python unit testing framework, based on Erich Gamma's JUnit and Kent Beck's Smalltalk testing framework. This module contains the core framework classes that form the basis of specific test cases and suites (TestCase, TestSuite etc.), and also a text-based utility class for running the tests and reporting the results (TextTestRunner). Simple usage: import unittest class IntegerArithmeticTestCase(unittest.TestCase): def testAdd(self): ## test method names begin 'test*' self.assertEqual((1 + 2), 3) self.assertEqual(0 + 1, 1) def testMultiply(self): self.assertEqual((0 * 10), 0) self.assertEqual((5 * 8), 40) if __name__ == '__main__': unittest.main() Further information is available in the bundled documentation, and from http://docs.python.org/library/unittest.html Copyright (c) 1999-2003 Steve Purcell Copyright (c) 2003-2010 Python Software Foundation This module is free software, and you may redistribute it and/or modify it under the same terms as Python itself, so long as this copyright message and disclaimer are retained in their original form. IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. t TestResulttTestCaset TestSuitetTextTestRunnert TestLoadertFunctionTestCasetmaintdefaultTestLoadertSkipTesttskiptskipIft skipUnlesstexpectedFailuretTextTestResulttinstallHandlertregisterResultt removeResultt removeHandlertgetTestCaseNamest makeSuitet findTestCasesi(R( RRRR R R R t_skipInRpmBuildt_expectedFailureInRpmBuild(t BaseTestSuiteR(RRRRR(t TestProgramR(RR (RRRRN(%t__doc__t__all__textendtTruet __unittesttresultRtcaseRRRR R R R RRtsuiteRRtloaderRRRRRRRtrunnerRR tsignalsRRRRt_TextTestResult(((s)/usr/lib64/python2.7/unittest/__init__.pyt-s   @("usr/lib64/python2.7/wsgiref/__init__.pyc000064400000001331152532170440013770 0ustar00 {fc@s dZdS(sCwsgiref -- a WSGI (PEP 333) Reference Library Current Contents: * util -- Miscellaneous useful functions and wrappers * headers -- Manage response headers * handlers -- base classes for server/gateway implementations * simple_server -- a simple BaseHTTPServer that supports WSGI * validate -- validation wrapper that sits between an app and a server to detect errors in either To-Do: * cgi_gateway -- Run WSGI apps under CGI (pending a deployment standard) * cgi_wrapper -- Run CGI apps under WSGI * router -- a simple middleware component that handles URL traversal N(t__doc__(((s(/usr/lib64/python2.7/wsgiref/__init__.pyttusr/lib/python2.7/site-packages/pip/_vendor/__init__.pyc000064400000006210152533072520017116 0ustar00 abc@@sKdZddlmZddlZddlZddlZeZej j ej j e Z dZerGejej je dej ej (edededed ed ed ed ed ededededededededededededededededededed ed!ed"ed#ed$ed%ed&ed'ed(ed)ed*ed+ed,ed-ed.ed/ed0ndS(1s pip._vendor is for vendoring dependencies of pip to prevent needing pip to depend on something external. Files inside of pip._vendor should be considered immutable and should only be updated to versions from upstream. i(tabsolute_importNcC@sdjt|}y t|ttddWntk ry t|ttddWntk ruqXtj|tj|<|jdd\}}t tj||tj|nXdS(Ns{0}.{1}tlevelit.i( tformatt__name__t __import__tglobalstlocalst ImportErrortsystmodulestrsplittsetattr(t modulenamet vendored_nametbasethead((s8/usr/lib/python2.7/site-packages/pip/_vendor/__init__.pytvendoreds    s*.whlt cachecontroltcoloramatdistlibtdistrothtml5libtlockfiletsixs six.movesssix.moves.urllibt packagingspackaging.versionspackaging.specifierst pkg_resourcestprogresstretryingtrequestssrequests.packagessrequests.packages.urllib3s&requests.packages.urllib3._collectionss$requests.packages.urllib3.connections(requests.packages.urllib3.connectionpools!requests.packages.urllib3.contribs*requests.packages.urllib3.contrib.ntlmpools+requests.packages.urllib3.contrib.pyopenssls$requests.packages.urllib3.exceptionss requests.packages.urllib3.fieldss"requests.packages.urllib3.fileposts"requests.packages.urllib3.packagess/requests.packages.urllib3.packages.ordered_dicts&requests.packages.urllib3.packages.sixs5requests.packages.urllib3.packages.ssl_match_hostnamesErequests.packages.urllib3.packages.ssl_match_hostname._implementations%requests.packages.urllib3.poolmanagers!requests.packages.urllib3.requests"requests.packages.urllib3.responsesrequests.packages.urllib3.utils)requests.packages.urllib3.util.connections&requests.packages.urllib3.util.requests'requests.packages.urllib3.util.responses$requests.packages.urllib3.util.retrys#requests.packages.urllib3.util.ssl_s&requests.packages.urllib3.util.timeouts"requests.packages.urllib3.util.url(t__doc__t __future__Rtglobtos.pathtosR tFalset DEBUNDLEDtpathtabspathtdirnamet__file__t WHEEL_DIRRtjoin(((s8/usr/lib/python2.7/site-packages/pip/_vendor/__init__.pytsh    )                                          usr/lib/python2.7/site-packages/cssselect/__init__.pyc000064400000001570152533303050016661 0ustar00 ǁaWc@sZdZddlmZmZmZmZmZddlmZm Z m Z dZ e Z dS(s\ CSS Selectors based on XPath ============================ This module supports selecting XML/HTML elements based on CSS selectors. See the `CSSSelector` class for details. :copyright: (c) 2007-2012 Ian Bicking and contributors. See AUTHORS for more details. :license: BSD, see LICENSE for more details. i(tparsetSelectortFunctionalPseudoElementt SelectorErrortSelectorSyntaxError(tGenericTranslatortHTMLTranslatortExpressionErrors0.9.2N( t__doc__tcssselect.parserRRRRRtcssselect.xpathRRRtVERSIONt __version__(((s6/usr/lib/python2.7/site-packages/cssselect/__init__.pyts(usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pyc000064400000002475152533372240020563 0ustar00 abc@sddlZdZdefdYZyddlmZWn*ek rhdejfdYZnXejeZ e j edS(iNs0.2.4tDistlibExceptioncBseZRS((t__name__t __module__(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pyR s(t NullHandlerRcBs#eZdZdZdZRS(cCsdS(N((tselftrecord((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pythandletcCsdS(N((RR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pytemitRcCs d|_dS(N(tNonetlock(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pyt createLockR(RRRRR (((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pyRs  ( tloggingt __version__t ExceptionRRt ImportErrortHandlert getLoggerRtloggert addHandler(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/__init__.pyts  usr/lib/python2.7/site-packages/bs4/builder/__init__.pyc000064400000026031152533412520017011 0ustar00 Jp[c@sddlmZddlZddlZddlmZmZmZmZddddgZ dZ d Z d Z d Z d Zd ZdefdYZeZdefdYZdefdYZdefdYZdZdefdYZddlmZeeyddlmZeeWnek rKnXyddlmZeeWnek r}nXdS(i(t defaultdictN(tCharsetMetaAttributeValuetContentMetaAttributeValuetHTMLAwareEntitySubstitutiont whitespace_retHTMLTreeBuildertSAXTreeBuildert TreeBuildertTreeBuilderRegistrytfastt permissivetstricttxmlthtmlthtml5cBs#eZdZdZdZRS(cCstt|_g|_dS(N(Rtlisttbuilders_for_featuretbuilders(tself((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt__init__ scCsBx(|jD]}|j|jd|q W|jjd|dS(s8Register a treebuilder based on its advertised features.iN(tfeaturesRtinsertR(Rttreebuilder_classtfeature((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytregister$scGst|jdkrdSt|dkr6|jdSt|}|jd}d}xt|dkr|j}|jj|g}t|dkr[|dkr|}t|}q|j t|}q[q[W|dkrdSx|D]}||kr|SqWdS(Ni( tlenRtNoneRtreversetpopRtgettsett intersection(RRt candidatest candidate_setRtwe_have_the_featuret candidate((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytlookup*s.        (t__name__t __module__RRR$(((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyRs  cBseZdZdZgZgZeZeZe Z d Z iZ dZdZdZdZd d dZdZdZd ZRS( s2Turn a document into a Beautiful Soup object tree.s[Unknown tree builder]cCs d|_dS(N(Rtsoup(R((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyRfscCsdS(N((R((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytresetiscCs |jdkrtS||jkS(sMight a tag with this name be an empty-element tag? The final markup may or may not actually present this tag as self-closing. For instance: an HTMLBuilder does not consider a

tag to be an empty-element tag (it's not in HTMLBuilder.empty_element_tags). This means an empty

tag will be presented as "

", not "

". The default implementation has no opinion about which tags are empty-element tags, so a tag will be presented as an empty-element tag if and only if it has no contents. "" will become "", and "bar" will be left alone. N(tempty_element_tagsRtTrue(Rttag_name((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytcan_be_empty_elementlscCs tdS(N(tNotImplementedError(Rtmarkup((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytfeedscCs|ddtfS(N(RtFalse(RR.tuser_specified_encodingtdocument_declared_encoding((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytprepare_markupscCs|S(sWrap an HTML fragment to make it look like a document. Different parsers do this differently. For instance, lxml introduces an empty tag, and html5lib doesn't. Abstracting this away lets us write simple tests which run HTML fragments through the parser and compare the results against other HTML fragments. This method should not be used outside of tests. ((Rtfragment((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyttest_fragment_to_documents cCstS(N(R0(Rttag((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytset_up_substitutionsscCs|s |S|jr|jjdg}|jj|jd}xs|jD]b}||kst|rP||krP||}t|trtj|}n|}|||s(tdictRtitemsR'thandle_starttag(RtnameR?((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt startElements"cCs|jj|dS(N(R't handle_endtag(RRR((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt endElementscCs|j||dS(N(RS(RtnsTupletnodeNameR?((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytstartElementNSscCs|j|dS(N(RU(RRVRW((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt endElementNSscCsdS(N((Rtprefixt nodeValue((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytstartPrefixMappingscCsdS(N((RRZ((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pytendPrefixMappingscCs|jj|dS(N(R't handle_data(Rtcontent((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt charactersscCsdS(N((R((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt startDocumentscCsdS(N((R((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyt endDocuments(R%R&RFR/RLRSRURXRYR\R]R`RaRb(((s8/usr/lib/python2.7/site-packages/bs4/builder/__init__.pyRs          c$BsseZdZejZeddddddddd d d d d dddddddddddgZedddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-dd.d/d0d1d2d3d4d5d6d7d8d9d:g#Zi d;d<d=gd>6d?d@gdA6d?d@gd 6dBgdC6dBgdD6dBgdC6dEgd&6dFgdG6d?gd6dHgdI6dJgdK6dLgd36ZdMZ RS(Ns]This TreeBuilder knows facts about HTML. Such as which tags are empty-element tags. tareatbasetbrtcoltembedthrtimgtinputtkeygentlinktmenuitemtmetatparamtsourcettracktwbrtbasefonttbgsoundtcommandtframetimagetisindextnextidtspacertaddresstarticletasidet blockquotetcanvastddtdivtdltdttfieldsett figcaptiontfiguretfootertformth1th2th3th4th5th6theadertlitmaintnavtnoscripttoltoutputtptpretsectionttablettfoottultvideotclasst accesskeytdropzoneR8treltrevtatheadersttdtthsaccept-charsettarchivetobjecttsizesticontsandboxtiframetforcCs|jdkrtS|jd}|jd}|jd}d}|dk rk|}t||ds@  " 4 b.N    usr/lib/python2.7/site-packages/pkg_resources/__init__.pyc000064400000341347152533416120017560 0ustar00 fcF@@s dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZyddlZWnek r]ddlZnXddlmZddl m!Z!m"Z"m#Z#ddlm$Z$y&ddlm%Z%m&Z&m'Z'e(Z)Wnek re*Z)nXdd lm+Z,dd l-m.Z.m/Z/yddl0j1Z2e2j3Wnek r3e4Z2nXd d l5m6Z6dd lm7Z7ddlm8Z8e9de9de9de9dddfej:koddfknre;dnej<re4Z=e4Z>ne4Z?e4Z@e4ZAe4ZBe4ZCe4ZDe4ZEe4ZFe4ZGe4ZHe4ZIe4ZJe4ZKe4ZLe4ZMe4ZNe4ZOdePfdYZQdZRiZSdZTdZUdZVdZWdZXdZYdZZdZ[Z\d Z]d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@ddAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddegFZ^d<e_fdfYZ`d=e`fdgYZadheafdiYZbd>e`fdjYZcd?e`fdkYZdiZeejfd ZgdZhdlZid ZjdZkdmZldnZmdoZngdpZodqZpdrZqejrdsZsejrdtZteqZuduZvdvZwewZxdwZydxZze4dyZ{dzZ|dTfd{YZ}dUe}fd|YZ~d7efd}YZd~efdYZd6efdYZeZd@e;fdYZd8fdYZdZdZdZdZdZdZe4dZd[fdYZemeed\efdYZd]efdYZejdYefdYZeZdefdYZdefdYZd^efdYZeme jedVefdYZdWefdYZdXefdYZeTddidZe*dZe*dZee jee*dZeeedZe*dZdZdfdYZdZdZdZdZeejeee2dree2jeneTddieTddidZdZdZdZe4dZdZeejeee jeee2dr) ee2jendZeeedZidZdZdZdZdZejrdjZejrdejejBjZd;efdYZdZdZd9efdYZdefdYZdefdYZied6ed6ed6ZdZdefdYZdZd:e8jjfdYZdZdZdZdZdZdZe jddeQde(dZeedZedZdS(sZ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipulate resource names being passed into the API. The package resource API is designed to work with normal filesystem packages, .egg files, and unpacked .egg files. It can also work in a limited way with .zip files and with custom PEP 302 loaders that support the ``get_data()`` method. i(tabsolute_importN(t get_importer(tsix(turllibtmaptfilter(tutime(tmkdirtrenametunlink(topen(tisdirtspliti(t py31compat(tappdirs(t packagings&pkg_resources.extern.packaging.versions)pkg_resources.extern.packaging.specifierss+pkg_resources.extern.packaging.requirementss&pkg_resources.extern.packaging.markersisPython 3.3 or later is requiredt PEP440WarningcB@seZdZRS(sa Used when there is an issue with a version or specifier not complying with PEP 440. (t__name__t __module__t__doc__(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRnscC@s?ytjj|SWn$tjjk r:tjj|SXdS(N(RtversiontVersiontInvalidVersiont LegacyVersion(tv((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt parse_versionuscK@s-tj|tjtj||dS(N(tglobalstupdatet _state_varstdicttfromkeys(tvartypetkw((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_declare_statescC@sLi}t}x6tjD](\}}|d|||||tcC@s{t}tj|}|dk rwtjdkrwy-ddjtd |jdf}Wqwt k rsqwXn|S(sZReturn this platform's maximum compatible version. distutils.util.get_platform() normally reports the minimum version of Mac OS X that would be required to *use* extensions produced by distutils. But what we want when checking compatibility is to know the version of Mac OS X that we are *running*. To allow usage of packages that explicitly require a newer version of Mac OS X, we must also know the current version of the OS. If this condition occurs for any other platform with a version in its platform strings, this function should be extended accordingly. tdarwins macosx-%s-%st.iiN( tget_build_platformtmacosVersionStringtmatchR3tsystplatformtjoint _macosx_verstgroupt ValueError(tplattm((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_supported_platforms - trequiret run_scriptt get_providertget_distributiontload_entry_pointt get_entry_maptget_entry_infotiter_entry_pointstresource_stringtresource_streamtresource_filenametresource_listdirtresource_existstresource_isdirtdeclare_namespacet working_settadd_activation_listenertfind_distributionstset_extraction_pathtcleanup_resourcestget_default_cachet Environmentt WorkingSettResourceManagert Distributiont Requirementt EntryPointtResolutionErrortVersionConflicttDistributionNotFoundt UnknownExtratExtractionErrortparse_requirementsRt safe_namet safe_versiont get_platformtcompatible_platformst yield_linestsplit_sectionst safe_extrat to_filenametinvalid_markertevaluate_markertensure_directorytnormalize_pathtEGG_DISTt BINARY_DISTt SOURCE_DISTt CHECKOUT_DISTt DEVELOP_DISTtIMetadataProvidertIResourceProvidert FileMetadatat PathMetadatat EggMetadatat EmptyProvidertempty_providert NullProvidert EggProvidertDefaultProvidert ZipProvidertregister_findertregister_namespace_handlertregister_loader_typetfixup_namespace_packagesRtrun_maintAvailableDistributionscB@seZdZdZRS(s.Abstract base for dependency resolution errorscC@s|jjt|jS(N(t __class__RtreprR4(tself((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__repr__s(RRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR`scB@sDeZdZdZedZedZdZdZRS(s An already-installed version conflicts with the requested version. Should be initialized with the installed Distribution and the requested Requirement. s3{self.dist} is installed but {self.req} is requiredcC@s |jdS(Ni(R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytdistscC@s |jdS(Ni(R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytreqscC@s|jjtS(N(t _templatetformattlocals(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytreportscC@s$|s |S|j|f}t|S(st If required_by is non-empty, return a version of self that is a ContextualVersionConflict. (R4tContextualVersionConflict(Rt required_byR4((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt with_context s( RRRRtpropertyRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRas  RcB@s*eZdZejdZedZRS(s A VersionConflict that accepts a third parameter, the set of the requirements that required the installed Distribution. s by {self.required_by}cC@s |jdS(Ni(R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs(RRRRaRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs cB@sSeZdZdZedZedZedZdZdZ RS(s&A requested distribution was not foundsSThe '{self.req}' distribution was not found and is required by {self.requirers_str}cC@s |jdS(Ni(R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR(scC@s |jdS(Ni(R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt requirers,scC@s|js dSdj|jS(Nsthe applications, (RR>(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt requirers_str0s cC@s|jjtS(N(RRR(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR6scC@s |jS(N(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__str__9s( RRRRRRRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRb"s cB@seZdZRS(s>Distribution doesn't have an "extra feature" of the given name(RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRc=siicC@s|t|eZdZdZdZdZdZdZRS(cC@sdS(s;Does the package's distribution contain the named metadata?N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt has_metadataR6cC@sdS(s'The named metadata resource as a stringN((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt get_metadataR6cC@sdS(sYield named metadata resource as list of non-blank non-comment lines Leading and trailing whitespace is stripped from each line, and lines with ``#`` as the first non-blank character are omitted.N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_metadata_linesR6cC@sdS(s>Is the named metadata a directory? (like ``os.path.isdir()``)N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytmetadata_isdirR6cC@sdS(s?List of metadata names in the directory (like ``os.listdir()``)N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytmetadata_listdirR6cC@sdS(s=Execute the named script in the supplied namespace dictionaryN((Rt namespace((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRFR6(RRRRRRRRF(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRws      cB@sDeZdZdZdZdZdZdZdZRS(s3An object that provides access to package resourcescC@sdS(sdReturn a true filesystem path for `resource_name` `manager` must be an ``IResourceManager``N((tmanagert resource_name((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_filenameR6cC@sdS(siReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``N((RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_stream R6cC@sdS(smReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``N((RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_stringR6cC@sdS(s,Does the package contain the named resource?N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt has_resourceR6cC@sdS(s>Is the named resource a directory? (like ``os.path.isdir()``)N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRRR6cC@sdS(s?List of resource names in the directory (like ``os.listdir()``)N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRPR6( RRRRRRRRRRP(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRxs     cB@seZdZddZedZedZdZdZ dZ ddZ dZ d Z deed Zddedd Zdded Zd ZedZdZdZdZRS(sDA collection of active distributions on sys.path (or a similar list)cC@s^g|_i|_i|_g|_|dkr<tj}nx|D]}|j|qCWdS(s?Create working set from list of path entries (default=sys.path)N(tentriest entry_keystby_keyt callbacksR3R<Rt add_entry(RRtentry((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__init__#s       cC@se|}yddlm}Wntk r1|SXy|j|Wntk r`|j|SX|S(s1 Prepare the master working set. i(t __requires__(t__main__RRRERat_build_from_requirements(tclstwsR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _build_master0s   cC@s|g}t|}|j|t}x|D]}|j|q4Wx0tjD]%}||jkrU|j|qUqUW|jtj(|S(sQ Build a working set from a requirement spec. Rewrites sys.path. (RetresolveRZtaddR<RRR(Rtreq_specRtreqstdistsRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRDs    cC@sT|jj|g|jj|x*t|tD]}|j||tq3WdS(sAdd a path item to ``.entries``, finding any distributions on it ``find_distributions(entry, True)`` is used to find distributions corresponding to the path entry, and they are added. `entry` is always appended to ``.entries``, even if it is already present. (This is because ``sys.path`` can contain the same value more than once, and the ``.entries`` of the ``sys.path`` WorkingSet should always equal ``sys.path``.) N(Rt setdefaultRRRVRRR(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRZs cC@s|jj|j|kS(s9True if `dist` is the active distribution for its project(RRR.(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __contains__iscC@sC|jj|j}|dk r?||kr?t||n|S(sFind a distribution matching requirement `req` If there is an active distribution for the requested project, this returns it as long as it meets the version requirement specified by `req`. But, if there is an active distribution for the project and it does *not* meet the `req` requirement, ``VersionConflict`` is raised. If there is no active distribution for the requested project, ``None`` is returned. N(RRR.R3Ra(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRms cc@sgx`|D]X}|j|}|dkrGx4|jD] }|Vq5Wq||kr||VqqWdS(sYield entry point objects from `group` matching `name` If `name` is None, yields all entry points in `group` from all distributions in the working set, otherwise only ones matching both `group` and `name` are yielded (in distribution order). N(RJR3tvalues(RR@RRRtep((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRL}s    cC@sQtjdj}|d}|j||d<|j|dj||dS(s?Locate distribution for `requires` and run `script_name` scriptiRiN(R<RRR-RERF(RtrequiresRRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRFs    cc@spi}xc|jD]X}||jkr+qnx:|j|D]+}||kr9d||<|j|Vq9q9WqWdS(sYield distributions for non-duplicate projects in the working set The yield order is the order in which the items' path entries were added to the working set. iN(RRR(RtseentitemR.((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__iter__s  cC@s|r"|j|j|d|n|dkr:|j}n|jj|g}|jj|jg}| r|j|jkrdS||j|j<|j|kr|j|jn|j|kr|j|jn|j |dS(sAdd `dist` to working set, associated with `entry` If `entry` is unspecified, it defaults to the ``.location`` of `dist`. On exit from this routine, `entry` is added to the end of the working set's ``.entries`` (if it wasn't already present). `dist` is only added to the working set if it's for a project that doesn't already have a distribution in the set, unless `replace=True`. If it's added, any callbacks registered with the ``subscribe()`` method will be called. RN( t insert_onRR3tlocationRRR.RRt _added_new(RRRtinsertRtkeystkeys2((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@s+t|ddd}i}i}g}t} tjt} x|r&|jd} | |krmqFn| j| |sqFn|j| j} | dkr|j j| j} | dks| | krz|rz|} |dkr!| dkrt |j }q!t g}t g} n|j| | |d|} || j<| dkrz| j| d}t| |qzn|j| n| | kr| | }t| | j|n| j| jddd}|j|x/|D]'}| |j| j| j| | Map each requirement to the extras that demanded it. c@s@fd|jd|p$dD}j p?t|S(s Evaluate markers for req against each extra that demanded it. Return False if the req has a marker and fails evaluation. Otherwise, return True. c3@s(|]}jji|d6VqdS(textraN(tmarkertevaluate(t.0R)(R(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys s(N(N(RR3R*tany(RRR t extra_evals((Rs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s  N(RRRR3R (((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscB@seZdZd eedZdZdZd dZ dZ dZ d e dZ d dZd Zd Zd ZRS( s5Searchable snapshot of distributions on a search pathcC@s,i|_||_||_|j|dS(s!Snapshot distributions available on a search path Any distributions found on `search_path` are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. `platform` is an optional string specifying the name of the platform that platform-specific distributions must be compatible with. If unspecified, it defaults to the current platform. `python` is an optional string naming the desired version of Python (e.g. ``'3.3'``); it defaults to the current version. You may explicitly set `platform` (and/or `python`) to ``None`` if you wish to map *all* distributions, not just those compatible with the running platform or Python version. N(t_distmapR=tpythontscan(Rt search_pathR=R0((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@sI|jdkp-|jdkp-|j|jk}|oHt|j|jS(sIs distribution `dist` acceptable for this environment? The distribution must match the platform and python version requirements specified when this environment was created, or False is returned. N(R0R3t py_versionRiR=(RRt py_compat((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytcan_addscC@s|j|jj|dS(s"Remove `dist` from the environmentN(R/R.tremove(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR6scC@sQ|dkrtj}nx2|D]*}x!t|D]}|j|q2WqWdS(sdScan `search_path` for distributions usable in this environment Any distributions found are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. Only distributions conforming to the platform/python version defined at initialization are added. N(R3R<RRVR(RR2RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR1s    cC@s|j}|jj|gS(sReturn a newest-to-oldest list of distributions for `project_name` Uses case-insensitive `project_name` comparison, assuming all the project's distributions use their project's name converted to all lowercase as their key. (tlowerR/R(RR tdistribution_key((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __getitem__s cC@su|j|rq|jrq|jj|jg}||krq|j||jdtjddt qqndS(sLAdd `dist` if we ``can_add()`` it and it has not already been added R.thashcmptreverseN( R5t has_versionR/RR.RRtoperatort attrgetterR(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@sy|j|}Wn#tk r8|s/nd}nX|dk rI|Sx%||jD]}||krW|SqWW|j||S(sFind distribution best matching `req` and usable on `working_set` This calls the ``find(req)`` method of the `working_set` to see if a suitable distribution is already active. (This may raise ``VersionConflict`` if an unsuitable version of the project is already active in the specified `working_set`.) If a suitable distribution isn't active, this method returns the newest distribution in the environment that meets the ``Requirement`` in `req`. If no suitable distribution is found, and `installer` is supplied, then the result of calling the environment's ``obtain(req, installer)`` method will be returned. N(RRaR3R.tobtain(RRRTRRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s    cC@s|dk r||SdS(sObtain a distribution matching `requirement` (e.g. via download) Obtain a distro that matches requirement (e.g. via download). In the base ``Environment`` class, this routine just returns ``installer(requirement)``, unless `installer` is None, in which case None is returned instead. This method is a hook that allows subclasses to attempt other ways of obtaining a distribution before falling back to the `installer` argument.N(R3(Rt requirementR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR?#s cc@s0x)|jjD]}||r|VqqWdS(s=Yield the unique project names of the available distributionsN(R/R(RR.((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR/s cC@s{t|tr|j|nXt|trdxF|D](}x||D]}|j|qFWq5Wntd|f|S(s2In-place addition of a distribution or environmentsCan't add %r to environment(RR]RRZR(RtothertprojectR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__iadd__5s cC@s@|jgdddd}x||fD]}||7}q(W|S(s4Add an environment or distribution to an environmentR=R0N(RR3(RRAtnewR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__add__AsN(RRRR3RDtPY_MAJORRR5R6R1R9RRR R?RRCRE(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRZs        cB@seZdZRS(sTAn error occurred extracting a resource The following attributes are available from instances of this exception: manager The resource manager that raised this exception cache_path The base directory for resource extraction original_error The exception instance that caused extraction to fail (RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRdMs cB@seZdZdZdZdZdZdZdZ dZ dZ dZ dd Z ed Zd Zd Zed ZRS(s'Manage resource extraction and packagescC@s i|_dS(N(t cached_files(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRascC@st|j|S(sDoes the named resource exist?(RGR(Rtpackage_or_requirementR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRQdscC@st|j|S(s,Is the named resource an existing directory?(RGRR(RRHR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRRhs cC@st|j||S(s4Return a true filesystem path for specified resource(RGR(RRHR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyROns cC@st|j||S(s9Return a readable file-like object for specified resource(RGR(RRHR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRNts cC@st|j||S(s%Return specified resource as a string(RGR(RRHR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRMzs cC@st|j|S(s1List the contents of the named resource directory(RGRP(RRHR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRPs cC@sttjd}|jpt}tjdj}t|jt }||_ ||_ ||_ |dS(s5Give an error message for problems extracting file(s)is Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: {old_exc} The Python egg cache directory is currently set to: {cache_path} Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. N( R<texc_infotextraction_pathRYttextwraptdedenttlstripRdRRRt cache_pathtoriginal_error(Rtold_excRNttmplterr((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytextraction_errors   cC@sx|jpt}tjj||d|}yt|Wntk rY|jnX|j|d|j |<|S(sReturn absolute location in cache for `archive_name` and `names` The parent directory of the resulting path will be created if it does not already exist. `archive_name` should be the base filename of the enclosing egg (which may not be the name of the enclosing zipfile!), including its ".egg" extension. `names`, if provided, should be a sequence of path name parts "under" the egg's extraction location. This method should only be called by resource providers that need to obtain an extraction location, and only for names they intend to extract, as it tracks the generated names for possible cleanup later. s-tmpi( RJRYRRR>t_bypass_ensure_directoryt ExceptionRSt_warn_unsafe_extraction_pathRG(Rt archive_nametnamest extract_patht target_path((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_cache_paths    cC@swtjdkr*|jtjd r*dStj|j}|tj@sV|tj@rsd|}tj |t ndS(sN If the default extraction path is overridden and set to an insecure location, such as /tmp, it opens up an opportunity for an attacker to replace an extracted file with an unauthorized payload. Warn the user if a known insecure location is used. See Distribute #375 for more details. tnttwindirNs%s is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).( RRRtenvirontstattst_modetS_IWOTHtS_IWGRPtwarningstwarnt UserWarning(Rtmodetmsg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRVs &cC@s@tjdkr<tj|jdBd@}tj||ndS(s4Perform any platform-specific postprocessing of `tempname` This is where Mac header rewrites should be done; other platforms don't have anything special they should do. Resource providers should call this method ONLY after successfully extracting a compressed resource. They must NOT call it on resources that are already in the filesystem. `tempname` is the current (temporary) name of the file, and `filename` is the name it will be renamed to by the caller after this routine returns. tposiximiN(RRR_R`tchmod(RttempnametfilenameRf((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt postprocessscC@s%|jrtdn||_dS(sSet the base path where resources will be extracted to, if needed. If you do not call this routine before any extractions take place, the path defaults to the return value of ``get_default_cache()``. (Which is based on the ``PYTHON_EGG_CACHE`` environment variable, with various platform-specific fallbacks. See that routine's documentation for more details.) Resources are extracted to subdirectories of this path based upon information given by the ``IResourceProvider``. You may set this to a temporary directory, but then you must call ``cleanup_resources()`` to delete the extracted files when done. There is no guarantee that ``cleanup_resources()`` will be able to remove all extracted files. (Note: you may not change the extraction path for a given resource manager once resources have been extracted, unless you first call ``cleanup_resources()``.) s5Can't change extraction path, files already extractedN(RGRARJ(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRWs  cC@sdS(sB Delete all extracted resource files and directories, returning a list of the file and directory names that could not be successfully removed. This function does not have any concurrency protection, so it should generally only be called when the extraction path is a temporary directory exclusive to a single process. This method is not automatically called; you must call it explicitly or register it as an ``atexit`` function if you wish to ensure cleanup of a temporary directory used for extractions. N((Rtforce((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRXR6N((RRRR3RJRRQRRRORNRMRPRSR[t staticmethodRVRlRWRRX(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR\]s           cC@s"tjjdp!tjddS(s Return the ``PYTHON_EGG_CACHE`` environment variable or a platform-relevant user cache dir for an app named "Python-Eggs". tPYTHON_EGG_CACHEtappnames Python-Eggs(RR^RRtuser_cache_dir(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRYscC@stjdd|S(sConvert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters are replaced with a single '-'. s[^A-Za-z0-9.]+t-(tretsub(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRfscC@sZyttjj|SWn9tjjk rU|jdd}tjdd|SXdS(sB Convert an arbitrary string to a standard version string RR8s[^A-Za-z0-9.]+RrN(RRRRRRRsRt(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRg%s cC@stjdd|jS(sConvert an arbitrary string to a standard 'extra' name Any runs of non-alphanumeric characters are replaced with a single '_', and the result is always lowercased. s[^A-Za-z0-9.-]+R(RsRtR7(R)((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRl1scC@s|jddS(s|Convert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. RrR(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRm:scC@s;yt|Wn&tk r6}d|_d|_|SXtS(so Validate text as a PEP 508 environment marker; return an exception if invalid or False otherwise. N(Rot SyntaxErrorR3RktlinenoR(ttextte((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRnBs  cC@sLy tjj|}|jSWn%tjjk rG}t|nXdS(s Evaluate a PEP 508 environment marker. Return a boolean indicating the marker result in this environment. Raise SyntaxError if marker is invalid. This implementation uses the 'pyparsing' module. N(RtmarkerstMarkerR+t InvalidMarkerRu(RwR)R*Rx((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRoPs cB@seZdZdZdZdZdZdZdZ dZ dZ dZ dZ dZd Zd Zd Zd Zd ZdZdZdZdZdZRS(sETry to implement resources and metadata for arbitrary PEP 302 loaderscC@s:t|dd|_tjjt|dd|_dS(NRt__file__R6(RR3RRRtdirnamet module_path(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRfscC@s|j|j|S(N(t_fnR~(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRjscC@stj|j||S(N(tiotBytesIOR(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRmscC@s|j|j|j|S(N(t_getRR~(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRpscC@s|j|j|j|S(N(t_hasRR~(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRsscC@s%|jo$|j|j|j|S(N(tegg_infoRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRvscC@sE|js dS|j|j|j|}tjrA|jdS|S(NR6sutf-8(RRRRtPY3tdecode(RRtvalue((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRys cC@st|j|S(N(RjR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j|j|j|S(N(t_isdirRR~(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRRscC@s%|jo$|j|j|j|S(N(RRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j|j|j|S(N(t_listdirRR~(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRPscC@s)|jr%|j|j|j|SgS(N(RRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs c B@sd|}|j|s4edjen|j|jdd}|jdd}|j|j|}||dR (RtbaseR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s2t|jdr"|jj|StddS(Ntget_datas=Can't perform this operation for loaders without 'get_data()'(RRRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRsN(RRRR3tegg_nameRRRRRRRRRRRRRRPRRFRRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR~_s,                 cB@s eZdZdZdZRS(s&Provider based on a virtual filesystemcC@stj|||jdS(N(R~Rt _setup_prefix(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j}d}xt||krt|rdtjj||_tjj|d|_||_ Pn|}tjj |\}}qWdS(NsEGG-INFO( R~R3t _is_egg_pathRRtbasenameRR>Rtegg_rootR (RRtoldR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   (RRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs cB@sJeZdZdZdZdZdZdZedZ RS(s6Provides access to package resources in the filesystemcC@stjj|S(N(RRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@stjj|S(N(RRR (RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s tj|S(N(Rtlistdir(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@st|j|j|dS(Ntrb(R RR~(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s&t|d}|jSWdQXdS(NR(R R(RRtstream((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s)ttdtd}t||dS(NtSourceFileLoader(Rtimportlib_machineryttypeR3R(Rt loader_cls((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _registers ( RRRRRRRRR(R(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs     cB@s<eZdZdZdZZdZdZdZ RS(s.Provider that returns nothing for all requestscC@stS(N(R(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5R6cC@sdS(NR6((RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@sgS(N((RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@sdS(N((R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR sN( RRRR3R~RRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR|s    t ZipManifestscB@s#eZdZedZeZRS(s zip manifest builder c@sBtj|-fdjD}t|SWdQXdS(s Build a dictionary similar to the zipimport directory caches, except instead of tuples, store ZipInfo objects. Use a platform-specific path separator (os.sep) for the path keys for compatibility with pypy on Windows. c3@s3|])}|jdtjj|fVqdS(RN(RRtseptgetinfo(R,R(tzfile(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys sN(tzipfiletZipFiletnamelistR(RRR#((Rs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytbuilds  (RRRR(Rtload(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRstMemoizedZipManifestscB@s)eZdZejddZdZRS(s% Memoized zipfile manifests. t manifest_modsmanifest mtimecC@svtjj|}tj|j}||ksC||j|krk|j|}|j||||Rt_extract_resourcet _eager_to_zip(RRRRteagersR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRcs     cC@s/|j}|jd}tj|}||fS(Nii(iii(t file_sizet date_timettimetmktime(tzip_stattsizeRt timestamp((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_get_date_and_sizeps  c C@s||jkr^x9|j|D]'}|j|tjj||}q#Wtjj|S|j|j|\}}tst dny(|j |j |j |}|j ||r|Stddtjj|\}} tj||jj|tj|t| ||f|j| |yt| |Wnltjk rtjj|r|j ||r|Stjdkrt|t| ||SnnXWntjk r|jnX|S(Ns>"os.rename" and "os.unlink" are not supported on this platforms .$extracttdirR\(t_indexRRRR>R}RRt WRITE_SUPPORTtIOErrorR[RRt _is_currentt_mkstemptwriteRRtcloseRRlRterrortisfileRR RS( RRRRtlastRRt real_pathtoutfttmpnam((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRysD    c C@s|j|j|\}}tjj|s2tStj|}|j|ks_|j|krctS|j j |}t |d}|j }WdQX||kS(sK Return True if the file_path is current for this zip_path RN( RRRRRRR_tst_sizeRRRR R( Rt file_pathRRRR_t zip_contentstft file_contents((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@sa|jdkrZg}x6dD].}|j|r|j|j|qqW||_n|jS(Nsnative_libs.txtseager_resources.txt(snative_libs.txtseager_resources.txt(RR3RR R(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs  cC@sy |jSWntk ri}x~|jD]s}|jtj}xX|rtjj|d }||kr||j|dPqF|jg||RR(RtindRtpartstparent((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs     cC@s.|j|}||jkp-||jkS(N(RRR(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j||jkS(N(RR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s%t|jj|j|dS(N((RRRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j|j|j|S(N(RRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|j|j|j|S(N(RRR~(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRsN(RRRR3RRRRRRRRRRnRRRRRRRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR?s$     7      cB@s;eZdZdZdZdZdZdZRS(s*Metadata handler for standalone PKG-INFO files Usage:: metadata = FileMetadata("/path/to/PKG-INFO") This provider rejects all data and metadata requests except for PKG-INFO, which is treated as existing, and will be the contents of the file at the provided location. cC@s ||_dS(N(R(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s|dkotjj|jS(NsPKG-INFO(RRR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s_|dkrtdntj|jdddd}|j}WdQX|j||S(NsPKG-INFOs(No metadata except PKG-INFO is availabletencodingsutf-8terrorsR(RRR RRt_warn_on_replacement(RRRtmetadata((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs  ! cC@sGdjd}||krCd}|jt}tj|ndS(Ns�sutf-8s2{self.path} could not be properly decoded in UTF-8(RRRRcRd(RRtreplacement_charRQRg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s  cC@st|j|S(N(RjR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs(RRRRRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRys     cB@seZdZdZRS(ssMetadata provider for egg directories Usage:: # Development eggs: egg_info = "/path/to/PackageName.egg-info" base_dir = os.path.dirname(egg_info) metadata = PathMetadata(base_dir, egg_info) dist_name = os.path.splitext(os.path.basename(egg_info))[0] dist = Distribution(basedir, project_name=dist_name, metadata=metadata) # Unpacked egg directories: egg_path = "/path/to/PackageName-ver-pyver-etc.egg" metadata = PathMetadata(egg_path, os.path.join(egg_path,'EGG-INFO')) dist = Distribution.from_filename(egg_path, metadata=metadata) cC@s||_||_dS(N(R~R(RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR)s (RRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRzscB@seZdZdZRS(s Metadata provider for .egg filescC@s`|jtj|_||_|jrFtjj|j|j|_n |j|_|j dS(s-Create a metadata provider from a zipimporterN( RRRRRtprefixRR>R~R(Rtimporter((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR1s   ! (RRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR{.sRt_distribution_finderscC@s|t|tfind_eggs_in_zipt zipimportt zipimporterR7Rt from_location( RRRRtsubitemtsubpathRRtsubmeta((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRQs$     cC@sdS(N(((RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt find_nothingoscC@sd}t|d|dtS(sL Given a list of filenames, return them in descending order by version number. >>> names = 'bar', 'foo', 'Python-2.7.10.egg', 'Python-2.7.2.egg' >>> _by_version_descending(names) ['Python-2.7.10.egg', 'Python-2.7.2.egg', 'foo', 'bar'] >>> names = 'Setuptools-1.2.3b1.egg', 'Setuptools-1.2.3.egg' >>> _by_version_descending(names) ['Setuptools-1.2.3.egg', 'Setuptools-1.2.3b1.egg'] >>> names = 'Setuptools-1.2.3b1.egg', 'Setuptools-1.2.3.post1.egg' >>> _by_version_descending(names) ['Setuptools-1.2.3.post1.egg', 'Setuptools-1.2.3b1.egg'] cS@sYtjj|\}}tj|jd|g}g|D]}tjj|^q=S(s6 Parse each component of the filename Rr( RRtsplitextt itertoolstchainR RRR(RtextRtpart((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _by_versionsR.R;(tsortedR(RXR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_by_version_descendingvs c #@sttrHtjdttjjdVdSt}fd|D}t |}xQ|D]I}tjj|}t |}x||D] } | VqWqWdS(s6Yield distributions accessible on a sys.path directoryRsEGG-INFONc3@s'|]}t|r|VqdS(N(t dist_factory(R,R(RR(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys s( t_normalize_cachedt_is_unpacked_eggR]RRzRRR>t safe_listdirRR( RRRRtfilteredtpath_item_entriesRtfullpathtfactoryR((RRs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt find_on_paths       cC@sf|j}tt|jd}|r.tS| rEt|rEtS| r_|jdr_tStS(s9 Return a dist_factory for a path_item and entry s .egg-infos .dist-infos .egg-link(s .egg-infos .dist-info( R7R-RRtdistributions_from_metadataRRVtresolve_egg_linktNoDists(RRRR7tis_meta((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   RcB@s2eZdZdZejr'eZndZRS(sS >>> bool(NoDists()) False >>> list(NoDists()('anything')) [] cC@stS(N(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__bool__scC@s tdS(N((titer(RR ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__call__s(RRRRRtPY2t __nonzero__R(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs    cC@sytj|SWnnttfk r*nXtk r}|jtjtjtjfkpot |dddk}|sqnXdS(sI Attempt to list contents of path, but suppress some exceptions. twinerrori N(( RRtPermissionErrortNotADirectoryErrortOSErrorterrnotENOTDIRtEACCEStENOENTRR3(RRxt ignorable((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s! cc@stjj|}tjj|rUttj|dkrCdSt||}n t|}tjj|}t j |||dt VdS(Nit precedence( RRR}R RRRzRyRR]RRv(RtrootRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs cc@sDt|2}x(|D] }|j}|r|VqqWWdQXdS(s1 Yield non-empty lines from file at path N(R tstrip(RRtline((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytnon_empty_liness   c@s>t}fd|D}tt|}t|dS(sa Given a path to an .egg-link, resolve distributions present in the referenced path. c3@s0|]&}tjjtjj|VqdS(N(RRR>R}(R,tref(R(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys s((R%RRVtnext(Rtreferenced_pathstresolved_pathst dist_groups((Rs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs    t FileFindert_namespace_handlerst_namespace_packagescC@s|t|(Rt path_partst module_partsR(t package_nameR=(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytposition_in_sys_pathTs NR.(R<RRRRRR/(t orig_pathRARtpRB((RAR=R<s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5Ds"  cC@s tjz|tkrdStjd}}d|krdj|jdd }t||tkrxt |nytj |j }Wqt k rt d|qXntj|gj|tj|gx|D]}t||qWWdtjXdS(s9Declare that package 'packageName' is a namespace packageNR8isNot a package:(t_impt acquire_lockR-R<RR3R>R RSRRR/RRRRR8t release_lock(R6RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRSes&        cC@sbtjzFx?tj|dD]+}t||}|r t||q q WWdtjXdS(sDEnsure that previously-declared namespace packages include path_itemN((RERFR-RR8RRG(RRtpackageR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs cC@s`tjj||jdd}t|}x+|jD]}t||kr8Pq8q8W|SdS(sBCompute an ns-package subpath for a filesystem or zipfile importerR8iN(RRR>R RR/(RRR6RRt normalizedR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytfile_ns_handlers " cC@sdS(N(R3(RRR6R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytnull_ns_handlerscC@stjjtjj|S(s1Normalize a file/dir name for comparison purposes(RRtnormcasetrealpath(Rk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRqscC@s9y ||SWn&tk r4t|||<}|SXdS(N(RRq(RkRtresult((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@s|jjdS(s7 Determine if given path appears to be an egg. s.egg(R7R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRscC@s.t|o-tjjtjj|ddS(s@ Determine if given path appears to be an unpacked egg. sEGG-INFOsPKG-INFO(RRRRR>(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs cC@sU|jd}|j}|rQdj|}ttj||tj|ndS(NR8(R RR>tsetattrR<R(R6RRR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR3s  cc@st|tjrVxn|jD]0}|j}|r|jd r|VqqWn-x*|D]"}xt|D] }|VqpWq]WdS(s9Yield non-empty/non-comment lines of a string or sequencet#N(RRRt splitlinesR#RRj(tstrststss((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRjs  s \w+(\.\w+)*$s (?P[^-]+) ( -(?P[^-]+) ( -py(?P[^-]+) ( -(?P.+) )? )? )? cB@seZdZd d ddZdZdZedZdZ dddZ e j dZ eddZed Zedd Zedd ZRS(s3Object representing an advertised importable objectcC@s[t|std|n||_||_t||_t||_||_dS(NsInvalid module name(tMODULERARt module_namettupletattrsR R(RRRVRXR R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@sfd|j|jf}|jr<|ddj|j7}n|jrb|ddj|j7}n|S(Ns%s = %st:R8s [%s]t,(RRVRXR>R (RRS((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs   cC@sdt|S(NsEntryPoint.parse(%r)(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR scO@sO| s|s|r,tjdtddn|rE|j||n|jS(sH Require packages for this EntryPoint, then resolve it. sJParameters to load are deprecated. Call .resolve and .require separately.t stackleveli(RcRdtDeprecationWarningRER(RRER4tkwargs((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s cC@sdt|jddgdd}ytjt|j|SWn%tk r_}tt|nXdS(sD Resolve the entry point from its module and attrs. tfromlistRtleveliN( RRVt functoolstreduceRRXRRR(RRtexc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s cC@sr|jr%|j r%td|n|jj|j}tj|||d|j}tttj|dS(Ns&Can't require() without a distributionR ( R RRcRRTRRRR(RRRRR#((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRE s s]\s*(?P.+?)\s*=\s*(?P[\w.]+)\s*(:\s*(?P[\w.]+))?\s*(?P\[.*\])?\s*$cC@s|jj|}|s0d}t||n|j}|j|d}|drl|djdnd}||d|d|||S(sParse a single entry point from string `src` Entry point syntax follows the form:: name = some.module:some.attr [extra1, extra2] The entry name and module name are required, but the ``:attrs`` and ``[extras]`` parts are optional s9EntryPoint must be in 'name=module:attrs [extras]' formatR tattrR8RR((tpatternR;RAt groupdictt _parse_extrasR (RtsrcRRCRgtresR RX((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR6 s  #cC@s9|s dStjd|}|jr2tn|jS(Ntx((R^RtspecsRAR (Rt extras_specR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRfJ s   cC@st|std|ni}xZt|D]L}|j||}|j|krptd||jn|||j '{project_name} ({version})' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommended to migrate to PEP 440 compatible versions. s R(RRRRRRKRLR#RRcRdRtvarsR(RtLVt is_legacyRQ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_warn_legacy_version s  cC@sgy |jSWnUtk rbt|j|j}|dkr^d}t||j|n|SXdS(Ns(Missing 'Version:' header and/or %s file(R{RRyt _get_metadatatPKG_INFOR3RA(RRRQ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s   cC@s>y |jSWn)tk r6|j|j|_nX|jS(s~ A map of extra to its list of (direct) requirements for this distribution, including the null extra. (t_Distribution__dep_mapRt_filter_extrast_build_dep_map(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_dep_map s   cC@sxttd|D]}|}|j|}|jd\}}}|oet|pet| }|rwg}nt|pd}|j|gj |qW|S(s Given a mapping of extras to dependencies, strip off environment markers and filter out any dependencies not matching the markers. RYN( RRR3RRwRnRoRlRR (tdmR)t new_extraRRR*t fails_marker((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s   cC@s`i}xSdD]K}xBt|j|D]+\}}|j|gjt|q)Wq W|S(Ns requires.txts depends.txt(s requires.txts depends.txt(RkRRR Re(RRRR)R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR, s  "'cC@s|j}g}|j|jddxS|D]K}y|j|t|Wq/tk rytd||fq/Xq/W|S(s@List of Requirements needed for this distro if `extras` are useds%s has no such extra feature %rN((RR RR3RlRRc(RR RtdepsR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR3 s   cc@s5|j|r1x|j|D] }|VqWndS(N(RR(RRR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRA scC@s|dkrtj}n|j|d||tjkrt|jx6|jdD]"}|tjkrWt|qWqWWndS(s>Ensure distribution is importable on `path` (default=sys.path)Rsnamespace_packages.txtN( R3R<RRRRRRRS(RRRtpkg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytactivateF s   cC@sOdt|jt|j|jp'tf}|jrK|d|j7}n|S(s@Return what this distribution's standard .egg filename should bes %s-%s-py%sRr(RmR RR3RFR=(RRk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRQ s  cC@s(|jrd||jfSt|SdS(Ns%s (%s)(RR(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR\ s cC@sMyt|dd}Wntk r/d}nX|p9d}d|j|fS(NRs[unknown version]s%s %s(RR3RAR (RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRb s    cC@s.|jdrt|nt|j|S(sADelegate all unrecognized public attributes to .metadata providerR(RRRR|(RRc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __getattr__j scK@s(|jt|tjj|||S(N(RRRRR(RRkRR ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRp scC@sTt|jtjjr1d|j|jf}nd|j|jf}tj|S(s?Return a ``Requirement`` that matches this distribution exactlys%s==%ss%s===%s(RRRRRR R^R(Rtspec((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRw scC@sD|j||}|dkr:td||ffn|jS(s=Return the `name` entry point of `group` or raise ImportErrorsEntry point %r not foundN(RKR3RR(RR@RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRI s cC@scy |j}Wn3tk rBtj|jd|}|_nX|dk r_|j|iS|S(s=Return the entry point map for `group`, or the full entry mapsentry_points.txtN(t_ep_mapRR_RqRR3R(RR@tep_map((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRJ s    cC@s|j|j|S(s<Return the EntryPoint object for `group`+`name`, or ``None``(RJR(RR@R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRK sc C@s|p |j}|sdSt|}tjj|}g|D]}|rVt|pY|^q>}xt|D]\}}||kr|rPqdSqo||kro|jtkro| r|||krdS|tjkr|j n|j |||j ||PqoqoW|tjkr.|j n|rG|j d|n |j |dSxMt ry|j ||d} Wntk rPq[X|| =|| =| }q[WdS(sEnsure self.location is on path If replace=False (default): - If location is already in path anywhere, do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent. - Else: add to the end of path. If replace=True: - If location is already on path anywhere (not eggs) or higher priority than its parent (eggs) do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent, removing any lower-priority entries. - Else: add it to the front of path. Nii(RRRRR}t enumerateR!RrR<tcheck_version_conflictRRRR:RA( RRtlocRtnloctbdirRDtnpathRtnp((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR sB +       cC@s|jdkrdStj|jd}t|j}x|jdD]}|tjksJ||ksJ|tkr}qJn|dkrqJnt tj|dd}|rt|j |sJ|j |jrqJnt d|||jfqJWdS( Nt setuptoolssnamespace_packages.txts top_level.txtt pkg_resourcestsiteR|sIModule %s was already imported from %s, but %s is being added to sys.path(RRR( R.RRRRqRR<RR-RR3Rt issue_warning(RtnspRtmodnametfn((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s"  cC@s8y |jWn&tk r3tdt|tSXtS(NsUnbuilt egg for (RRARRRR(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR< s   cK@sYd}x0|jD]"}|j|t||dqW|jd|j|j|S(s@Copy this distribution, substituting in any changed keyword argss<project_name version py_version platform location precedenceRN(R RRR3R|R(RR RXRc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytclone s  cC@s g|jD]}|r |^q S(N(R(Rtdep((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR  sN((.RRRRR3RFRrRR(RRRR:RRRRRRRR.RRRRRnRRRRRRRRRRRRRIRJRKRRR<RR (((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR] sR                      D   tEggInfoDistributioncB@seZdZRS(cC@s.t|j|j}|r*||_n|S(s Packages installed by distutils (e.g. numpy or scipy), which uses an old safe_version, and so their version numbers can get mangled when converted to filenames (e.g., 1.11.0.dev0+2329eae to 1.11.0.dev0_2329eae). These distributions will not be parsed properly downstream by Distribution and safe_version, so take an extra step and try to get the version number from the metadata file itself instead of the filename. (RyRRR{(Rt md_version((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s  (RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR stDistInfoDistributioncB@sJeZdZdZejdZedZedZ dZ RS(sV Wrap an actual or potential sys.path entry w/metadata, .dist-info style. tMETADATAs([\(,])\s*(\d.*?)\s*([,\)])cC@sTy |jSWnBtk rO|j|j}tjjj||_|jSXdS(sParse and cache metadataN(t _pkg_infoRRRtemailtparsertParsertparsestr(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_parsed_pkg_info! s   cC@s6y |jSWn$tk r1|j|_|jSXdS(N(t_DistInfoDistribution__dep_mapRt_compute_dependencies(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR+ s   c@sigd6}|_gx3|jjdp2gD]}jt|q3Wfd}t|d}|dj|xR|jjdpgD]8}t|j}t t|||||R4(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR` s(RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR_ scc@stt|}x|D]~}d|krA||jd }n|jdr|d j}y|t|7}Wqtk rdSXnt|VqWdS(sYield ``Requirement`` objects for each specification in `strs` `strs` must be a string, or a (possibly-nested) iterable thereof. s #s\iN(RRjRRR#R't StopIterationR^(RRRlR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRed s   cB@sMeZdZdZdZdZdZdZedZ RS(cC@sytt|j|Wn+tjjk rG}tt|nX|j|_ t |j}||j |_ |_ g|jD]}|j|jf^q|_ttt|j|_|j |jt|j|jrt|jndf|_t|j|_dS(s>DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N(tsuperR^RRRtInvalidRequirementRRRt unsafe_nameRfR7R R.t specifierR=RRjRWRRlR RR*R3thashCmpRt_Requirement__hash(Rtrequirement_stringRxR R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR{ s + $cC@st|to|j|jkS(N(RR^R(RRA((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR scC@s ||k S(N((RRA((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR scC@sGt|tr1|j|jkr%tS|j}n|jj|dtS(Nt prereleases(RR]R.RRRtcontainsR(RR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s  cC@s|jS(N(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR scC@sdt|S(NsRequirement.parse(%r)(R(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR scC@st|\}|S(N(Re(RSR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s( RRRRRRRRRnR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR^z s     cC@st|kr|tfS|S(sJ Ensure object appears in the mro even for old-style classes. (tobject(tclasses((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_always_object s  cC@sPttjt|dt|}x"|D]}||kr.||Sq.WdS(s2Return an adapter factory for `ob` from `registry`RN(RtinspecttgetmroRR(tregistryR/R1tt((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s'  cC@s)tjj|}tj|dtdS(s1Ensure that the parent directory of `path` existstexist_okN(RRR}R tmakedirsR(RR}((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRp scC@s^tstdnt|\}}|rZ|rZt| rZt|t|dndS(s/Sandbox-bypassing version of ensure_directory()s*"os.mkdir" not supported on this platform.iN(RRR R RTR(RR}Rk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRT s  cc@sd}g}xt|D]y}|jdr|jdrs|sI|rW||fVn|dd!j}g}qtd|q|j|qW||fVdS(ssSplit a string or iterable thereof into (section, content) pairs Each ``section`` is a stripped version of the section header ("[section]") and each ``content`` is a list of stripped lines excluding blank lines and comment-only lines. If there are any such lines before the first section header, they're returned in a first ``section`` of ``None``. t[t]iisInvalid section headingN(R3RjRRR#RAR(RStsectiontcontentR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRk s  cO@s7tj}ztt_tj||SWd|t_XdS(N(RR tos_openttempfiletmkstemp(R4R told_open((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s   tignoretcategoryRcO@s||||S(N((RR4R]((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _call_aside s c@s:t|d<|jfdtDdS(s=Set up global resource manager (deliberately not state-saved)t_managerc3@s3|])}|jds|t|fVqdS(RN(RR(R,R(R(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys sN(R\RR(R%((Rs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _initialize s    cC@stj}tdd||j}|j}|j}|j}|}td|D|ddtg|_ t t |j t jtjtdS(sE Prepare the master working set and make the ``require()`` API available. This function has explicit effects on the global state of pkg_resources. It is intended to be invoked once at the initialization of this module. Invocation by other packages is unsupported and done at their own risk. RRTcs@s!|]}|jdtVqdS(RN(RR(R,R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys + scS@s|jdtS(NR(RR(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5/ R6R%N(R[RR!RERLR&RFRWRRRRRR<RRRR(RTRERLRURFR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_initialize_master_working_set s        (Rt __future__RR<RRRRsR1RRRcR_R`tpkgutilR=R=RRt email.parserRRRRKRRRRERtimptpkg_resources.externRtpkg_resources.extern.six.movesRRRRRRR RRRR Rtos.pathR R timportlib.machineryt machineryRRR3R6R RRRt version_infot RuntimeErrorRRRRERTRUtresources_streamRXt resource_dirRNRWRRRMRLRPRORQRR,R-tRuntimeWarningRRRR!R'R)R,R0R1R2t _sget_nonet _sset_noneRDt__all__RUR`RaRRbRcRRRFRrRsRtRuRvRRGR?RR9RR:RRhRiRFRRHRIRJRKRwRxRR[RRRZRRdR\RYRfRgRlRmRnRoR~RRRR|R}RRRRRyRzR{RRVRRRRRRR RR%Rt ImpImporterRR+RR8R5RSRRJRKRqRRRR3RjR;RUtVERBOSEt IGNORECASERR_RuRyR]RRRRRARReRR^RRRpRTRkRtfilterwarningsRRRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyts                                 +                                    .        d   '            ! !          }2   6