/usr/lib/python2.6/site-packages/babel
NameSizeModeActions
locale-data/-0755rm
localedata/-0755rm
localtime/-0755rm
messages/-0755rm
core.py311190644editdlrm
core.pyc325670644editdlrm
dates.py431110644editdlrm
dates.pyc424820644editdlrm
global.dat1096970644editdlrm
languages.py27480644editdlrm
languages.pyc32960644editdlrm
lists.py12710644editdlrm
lists.pyc14660644editdlrm
localedata.py62470644editdlrm
localedata.pyc75630644editdlrm
numbers.py232250644editdlrm
numbers.pyc223750644editdlrm
plural.py160210644editdlrm
plural.pyc201890644editdlrm
support.py218120644editdlrm
support.pyc255100644editdlrm
units.py110880644editdlrm
units.pyc92160644editdlrm
util.py81670644editdlrm
util.pyc108020644editdlrm
_compat.py11050644editdlrm
_compat.pyc24620644editdlrm
__init__.py7100644editdlrm
__init__.pyc9350644editdlrm
Edit: /usr/lib/python2.6/site-packages/babel/util.pyc (10802B)
Ñò zDVc @sƒdZddkZddklZlZddkZddkZddkZddkl Z l Z e ƒZ d„Z eideiƒZd„Zd„Zd eifd „ƒYZd d d d „Zdefd„ƒYZyeiiZWnej odd„ZnXdefd„ƒYZddkZddklZeiZ ei!Z!ei"Z"ei#Z#ei$Z$ei%Z%ei&Z&dS(s© babel.util ~~~~~~~~~~ Various utility classes and functions. :copyright: (c) 2013 by the Babel Team. :license: BSD, see LICENSE for more details. iÿÿÿÿN(t timedeltattzinfo(tiziptimapccsGtƒ}x7t|ƒD])}||jo|V|i|ƒqqWdS(s”Yield all items in an iterable collection that are distinct. Unlike when using sets for a similar effect, the original ordering of the items in the collection is preserved by this function. >>> print list(distinct([1, 2, 1, 3, 4, 4])) [1, 2, 3, 4] >>> print list(distinct('foobar')) ['f', 'o', 'b', 'a', 'r'] :param iterable: the iterable collection providing the data N(tsettitertadd(titerabletseentitem((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytdistincts   s([ \t\f]* \# .* coding[=:][ \t]*([-\w.]+)c Cs*|iƒ}|idƒzü|iƒ}|itiƒ}|o|ttiƒ}nti|ƒ}|pay&ddk }|i |i dƒƒWnt t fj oqÏX|iƒ}ti|ƒ}n|o|ot dƒ‚ndS|o|idƒi dƒSdSWd|i|ƒXdS(sDeduce the encoding of a source file from magic comment. It does this in the same way as the `Python interpreter`__ .. __: http://docs.python.org/ref/encodings.html The ``fp`` argument should be a seekable file object. (From Jeff Dairiki) iiÿÿÿÿNslatin-1s\python refuses to compile code with both a UTF8 byte-order-mark and a magic encoding commentsutf-8i(ttelltseektreadlinet startswithtcodecstBOM_UTF8tlentPYTHON_MAGIC_COMMENT_retmatchtparsertsuitetdecodet ImportErrort SyntaxErrortgrouptNone(tfptpostline1thas_bomtmRtline2((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytparse_encoding,s2      cCsØhdd6dd6dd6dd6d d 6d d 6}g}xgttid |ƒƒD]M\}}|do|i||ƒqO|o|iti|ƒƒqOqOWtidi|ƒd|iti dƒƒ}|dj S(sExtended pathname pattern matching. This function is similar to what is provided by the ``fnmatch`` module in the Python standard library, but: * can match complete (relative or absolute) path names, and not just file names, and * also supports a convenience pattern ("**") to match files at any directory level. Examples: >>> pathmatch('**.py', 'bar.py') True >>> pathmatch('**.py', 'foo/bar/baz.py') True >>> pathmatch('**.py', 'templates/index.html') False >>> pathmatch('**/templates/*.html', 'templates/index.html') True >>> pathmatch('**/templates/*.html', 'templates/foo/bar.html') False :param pattern: the glob pattern :param filename: the path name of the file to match against s[^/]t?s[^/]/s?/s[^/]+t*s[^/]+/s*/s (?:.+/)*?s**/s(?:.+/)*?[^/]+s**s ([?*]+/?)itt$t/N( t enumeratetretsplittappendtescapeRtjointreplacetostsepR(tpatterntfilenametsymbolstbuftidxtpartR((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt pathmatch[s    .t TextWrappercBseZeidƒZRS(s((\s+|(?<=[\w\!\"\'\&\.\,\?])-{2,}(?=\w))(t__name__t __module__R(tcompilet wordsep_re(((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyR7‰siFR$c Cs.td|d|d|dtƒ}|i|ƒS(sØSimple wrapper around the ``textwrap.wrap`` function in the standard library. This version does not wrap lines on hyphens in words. :param text: the text to wrap :param width: the maximum line width :param initial_indent: string that will be prepended to the first line of wrapped output :param subsequent_indent: string that will be prepended to all lines save the first of wrapped output twidthtinitial_indenttsubsequent_indenttbreak_long_words(R7tFalsetwrap(ttextR<R=R>twrapper((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytwraptexts  todictcBs¤eZdZdd„Zd„Zd„Zd„ZeZd„Z d„Z d„Z d„Z d „Z ed „Zd „Zdd „Zd „Zd„Zd„ZRS(skOrdered dict implementation. :see: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/107747 cCs3ti||phƒtti|ƒƒ|_dS(N(tdictt__init__tlisttkeyst_keys(tselftdata((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRG¦scCs$ti||ƒ|ii|ƒdS(N(RFt __delitem__RJtremove(RKtkey((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRMªscCs;ti|||ƒ||ijo|ii|ƒndS(N(RFt __setitem__RJR*(RKROR ((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRP®scCs t|iƒS(N(RRJ(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt__iter__³scCsti|ƒg|_dS(N(RFtclearRJ(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRR·s cCstƒ}|i|ƒ|S(N(REtupdate(RKtd((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytcopy»s  cCst|i|iƒƒS(N(tzipRJtvalues(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytitemsÀscCst|i|iƒƒS(N(RRJt itervalues(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt iteritemsÃscCs|iS(N(RJ(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRIÆscCsS|tjoti||ƒS||jo|S|ii|ƒti|||ƒS(N(tmissingRFtpopRJRN(RKROtdefault((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyR\És   cCs|ii|ƒti|ƒS(N(RJRNRFtpopitem(RKRO((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyR^ÑscCs;ti|||ƒ||ijo|ii|ƒndS(N(RFt setdefaultRJR*(RKROtfailobj((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyR_ÕscCs+x$|iƒD]\}}|||>> relpath('foo/bar.txt', '').replace(os.sep, '/') 'foo/bar.txt' >>> relpath('foo/bar.txt', 'foo').replace(os.sep, '/') 'bar.txt' >>> relpath('foo/bar.txt', 'baz').replace(os.sep, '/') '../foo/bar.txt' ( R.tpathtabspathR)R/Rt commonprefixtpardirR,(Rgtstartt start_listt path_listtitrel_list((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytrelpathès %tFixedOffsetTimezonecBsGeZdZdd„Zd„Zd„Zd„Zd„Zd„Z RS(s&Fixed offset in minutes east from UTC.cCs:td|ƒ|_|djod|}n||_dS(Ntminutess Etc/GMT%+d(Rt_offsetRtzone(RKtoffsettname((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRGÿs cCs|iS(N(Rt(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt__str__scCsd|i|ifS(Ns(RtRs(RK((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt__repr__scCs|iS(N(Rs(RKtdt((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt utcoffset scCs|iS(N(Rt(RKRy((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyttznamescCstS(N(tZERO(RKRy((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pytdstsN( R8R9RdRRGRwRxRzR{R}(((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyRqüs     (t localtime('RdRtdatetimeRRR.R(ttextwrapt babel._compatRRtobjectR[R R:tVERBOSERR!R6R7RDRFRERgRptAttributeErrorRqtpytzt_pytztbabelR~tutctUTCtLOCALTZt get_localzonet STDOFFSETt DSTOFFSETtDSTDIFFR|(((s)/tmp/pip-build-lt8jXN/Babel/babel/util.pyt s:       / .D