tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
L\¬Qc@sÍdZddlZddlZddlZddddddd    d
d d d dddddddgZeZdefd„ƒYZdefd„ƒYZ    dZ
dZ dddddddddddddg Z dd?d„ƒYZ dd@d „ƒYZed!ƒZed"ƒZe d#ƒZe d$ƒZed%ƒ\ZZZZZZZd&„Zd'„Zd(„Zd)„Zd*efd+„ƒYZ d,e fd-„ƒYZ!d.e fd/„ƒYZ"d0dAd1„ƒYZ#d2e!fd3„ƒYZ$d4e"fd5„ƒYZ%e!ƒZ&e&j'Z(d6„Z)e&j*Z+e&j,Z,e&j-Z.e&j/Z0e&j1Z1e&j2Z3e&j4Z5e&j6Z7dCZ8d8Z9e8e9d9„Z:e8e9d:„Z;d;Z<ej=e<ddƒj>ƒZ?d<„Z@d=„ZAeBd>krÉeAejCƒndS(Ds$Calendar printing functions
 
Note when comparing these calendars to the ones printed by cal(1): By
default, these calendars have Monday as the first day of the week, and
Sunday as the last (the European convention). Use setfirstweekday() to
set the first day of the week (0=Monday, 6=Sunday).iÿÿÿÿNtIllegalMonthErrortIllegalWeekdayErrortsetfirstweekdayt firstweekdaytisleaptleapdaystweekdayt
monthranget monthcalendartprmonthtmonthtprcaltcalendarttimegmt
month_namet
month_abbrtday_nametday_abbrcBseZd„Zd„ZRS(cCs ||_dS(N(R
(tselfR
((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt__init__scCs d|jS(Ns!bad month number %r; must be 1-12(R
(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt__str__s(t__name__t
__module__RR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRs    cBseZd„Zd„ZRS(cCs ||_dS(N(R(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRscCs d|jS(Ns7bad weekday number %r; must be 0 (Monday) to 6 (Sunday)(R(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRs(RRRR(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRs    iiiiiit_localized_monthcBskeZgedƒD]"Zejdeddƒj^qZejdd„ƒd„Z    d„Z
d„Z RS(i iÑiicCsdS(Nt((tx((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt<lambda>2scCs ||_dS(N(tformat(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR4scCsM|j|}t|tƒr<g|D]}||jƒ^q#S||jƒSdS(N(t_monthst
isinstancetsliceR(Rtitfuncstf((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt __getitem__7s  cCsdS(Ni ((R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt__len__>s( RRtrangeRtdatetimetdatetstrftimeRtinsertRR"R#(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR/s
5        t_localized_daycBsXeZgedƒD]"Zejddedƒj^qZd„Zd„Z    d„Z
RS(iiÑicCs ||_dS(N(R(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRGscCsM|j|}t|tƒr<g|D]}||jƒ^q#S||jƒSdS(N(t_daysRRR(RRR R!((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR"Js  cCsdS(Ni((R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR#Qs( RRR$RR%R&R'R*RR"R#(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR)Bs5        s%As%as%Bs%bicCs.|ddko-|ddkp-|ddkS(s5Return True for leap years, False for non-leap years.iiidi((tyear((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRascCsD|d8}|d8}|d|d|d|d|d|dS(sFReturn number of leap years in range [y1, y2).
       Assume y1 <= y2.iiidi((ty1ty2((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRfs
 
cCstj|||ƒjƒS(sTReturn weekday (0-6 ~ Mon-Sun) for year (1970-...), month (1-12),
       day (1-31).(R%R&R(R+R
tday((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRnscCsgd|kodkns+t|ƒ‚nt||dƒ}t||tkoYt|ƒ}||fS(sQReturn weekday (0-6 ~ Mon-Sun) and number of days (28-31) for
       year, month.ii (RRtmdaystFebruaryR(R+R
tday1tndays((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRts
 tCalendarcBsžeZdZdd„Zd„Zd„ZeeeƒZd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd d „Zd d„Zd d„ZRS(so
    Base calendar class. This class doesn't do any formatting. It simply
    provides data to subclasses.
    icCs ||_dS(N(R(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR„scCs |jdS(Ni(t _firstweekday(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytgetfirstweekday‡scCs ||_dS(N(R4(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRŠsccs1x*t|j|jdƒD]}|dVqWdS(ss
        Return a iterator for one week of weekday numbers starting with the
        configured first one.
        iN(R$R(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt iterweekdayss ccsµtj||dƒ}|jƒ|jd}|tjd|ƒ8}tjddƒ}xZtr°|Vy||7}Wntk
r„PnX|j|krW|jƒ|jkrWPqWqWWdS(sÔ
        Return an iterator for one month. The iterator will yield datetime.date
        values and will always iterate through complete weeks, so it will yield
        dates outside the specified month.
        iitdaysN(R%R&RRt    timedeltatTruet OverflowErrorR
(RR+R
R&R7toneday((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytitermonthdates—s     $ccsXxQ|j||ƒD]=}|j|kr<d|jƒfVq|j|jƒfVqWdS(sž
        Like itermonthdates(), but will yield (day number, weekday number)
        tuples. For days outside the specified month the day number is 0.
        iN(R<R
RR.(RR+R
R&((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytitermonthdays2¬sccs@x9|j||ƒD]%}|j|kr0dVq|jVqWdS(s†
        Like itermonthdates(), but will yield day numbers. For days outside
        the specified month the day number is 0.
        iN(R<R
R.(RR+R
R&((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt itermonthdays·scCsLt|j||ƒƒ}gtdt|ƒdƒD]}|||d!^q1S(s
        Return a matrix (list of lists) representing a month's calendar.
        Each row represents a week; week entries are datetime.date values.
        ii(tlistR<R$tlen(RR+R
tdatesR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytmonthdatescalendarÂscCsLt|j||ƒƒ}gtdt|ƒdƒD]}|||d!^q1S(sÕ
        Return a matrix representing a month's calendar.
        Each row represents a week; week entries are
        (day number, weekday number) tuples. Day numbers outside this month
        are zero.
        ii(R?R=R$R@(RR+R
R7R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytmonthdays2calendarÊscCsLt|j||ƒƒ}gtdt|ƒdƒD]}|||d!^q1S(sˆ
        Return a matrix representing a month's calendar.
        Each row represents a week; days outside this month are zero.
        ii(R?R>R$R@(RR+R
R7R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytmonthdayscalendarÔsicCsfgtttdƒD]}|j||ƒ^q}gtdt|ƒ|ƒD]}||||!^qKS(s&
        Return the data for the specified year ready for formatting. The return
        value is a list of month rows. Each month row contains upto width months.
        Each month contains between 4 and 6 weeks and each week contains 1-7
        days. Days are datetime.date objects.
        i i(R$tJanuaryRBR@(RR+twidthRtmonths((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytyeardatescalendarÜs/cCsfgtttdƒD]}|j||ƒ^q}gtdt|ƒ|ƒD]}||||!^qKS(só
        Return the data for the specified year ready for formatting (similar to
        yeardatescalendar()). Entries in the week lists are
        (day number, weekday number) tuples. Day numbers outside this month are
        zero.
        i i(R$RERCR@(RR+RFRRG((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytyeardays2calendarés/cCsfgtttdƒD]}|j||ƒ^q}gtdt|ƒ|ƒD]}||||!^qKS(sÓ
        Return the data for the specified year ready for formatting (similar to
        yeardatescalendar()). Entries in the week lists are day numbers.
        Day numbers outside this month are zero.
        i i(R$RERDR@(RR+RFRRG((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytyeardayscalendarös/(RRt__doc__RR5RtpropertyRR6R<R=R>RBRCRDRHRIRJ(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR3~s                                 
    t TextCalendarcBseZdZd„Zd„Zd„Zd„Zd„Zed„Z    ddd„Z
ddd    „Z d
d d d d„Z ddd d d„Z RS(sr
    Subclass of Calendar that outputs a calendar as a simple plain text
    similar to the UNIX program cal.
    cCs|j||ƒGdS(s3
        Print a single week (no newline).
        N(t
formatweek(RttheweekRF((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytprweek    scCs,|dkrd}n
d|}|j|ƒS(s*
        Returns a formatted day.
        iRs%2i(tcenter(RR.RRFts((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt    formatdays     
cs dj‡‡fd†|DƒƒS(sA
        Returns a single week in a string (no newline).
        t c3s*|] \}}ˆj||ˆƒVqdS(N(RS(t.0tdtwd(RRF(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>s(tjoin(RRORF((RRFsP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRNscCs0|dkrt}nt}||| j|ƒS(s4
        Returns a formatted week day name.
        i    (RRRQ(RR.RFtnames((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt formatweekdays     cs&dj‡‡fd†ˆjƒDƒƒS(s-
        Return a header for a week.
        RTc3s!|]}ˆj|ˆƒVqdS(N(RZ(RUR(RRF(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>-s(RXR6(RRF((RRFsP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytformatweekheader)scCs0t|}|r#d||f}n|j|ƒS(s0
        Return a formatted month name.
        s%s %r(RRQ(RttheyeartthemonthRFtwithyearRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytformatmonthname/s
icCs|j||||ƒGdS(s+
        Print a month's calendar.
        N(t formatmonth(RR\R]twtl((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR    8scCsËtd|ƒ}td|ƒ}|j||d|ddƒ}|jƒ}|d|7}||j|ƒjƒ7}|d|7}xD|j||ƒD]0}||j||ƒjƒ7}|d|7}q“W|S(s@
        Return a month's calendar string (multi-line).
        iiis
(tmaxR_trstripR[RCRN(RR\R]RaRbRRtweek((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR`>s! iiiics=td|ƒ}td|ƒ}td|ƒ}|ddd‰g}|j}|tˆƒjˆ|||dƒjƒƒ|d|ƒˆj|ƒ‰x“tˆjˆ|ƒƒD]y\}}    t||dt    ||dddƒƒ}
|d|ƒ‡‡‡fd†|
Dƒ} |t
| ˆ|ƒjƒƒ|d|ƒ‡fd†|
Dƒ} |t
| ˆ|ƒjƒƒ|d|ƒtd„|    Dƒƒ} x”t| ƒD]†}g}xM|    D]E}|t |ƒkrÝ|jd    ƒqµ|jˆj |||ƒƒqµW|t
|ˆ|ƒjƒƒ|d|ƒq¢Wq³Wd    j |ƒS(
sC
        Returns a year's calendar as a multi-line string.
        iiis
i c3s'|]}ˆjˆ|ˆtƒVqdS(N(R_tFalse(RUtk(tcolwidthRR\(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>_sc3s|] }ˆVqdS(N((RURg(theader(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>cscss|]}t|ƒVqdS(N(R@(RUtcal((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>gsR(RctappendtreprRQRdR[t    enumerateRIR$tmint formatstringR@RNRX(RR\RaRbtctmtvtaRtrowRGRYtheaderstheighttjtweeksRj((RhRiRR\sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt
formatyearNs:    /%,
 !cCs|j|||||ƒGHdS(sPrint a year's calendar.N(Ry(RR\RaRbRpRq((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytpryearss(RRRKRPRSRNRZR[R9R_R    R`RyRz(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRMs        
       
       %t HTMLCalendarcBsƒeZdZdddddddgZd„Zd    „Zd
„Zd „Zed „Z    ed „Z
dd„Z dddd„Z RS(s4
    This calendar returns complete HTML pages.
    tmonttuetwedtthutfritsattsuncCs)|dkrdSd|j||fSdS(s/
        Return a day as a table cell.
        is<td class="noday">&nbsp;</td>s<td class="%s">%d</td>N(t
cssclasses(RR.R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRS€s cs'dj‡fd†|Dƒƒ}d|S(s8
        Return a complete week as a table row.
        Rc3s'|]\}}ˆj||ƒVqdS(N(RS(RURVRW(R(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>ss <tr>%s</tr>(RX(RRORR((RsP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRN‰scCsd|j|t|fS(s:
        Return a weekday name as a table header.
        s<th class="%s">%s</th>(RƒR(RR.((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRZscs-dj‡fd†ˆjƒDƒƒ}d|S(s<
        Return a header for a week as a table row.
        Rc3s|]}ˆj|ƒVqdS(N(RZ(RUR(R(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>šss <tr>%s</tr>(RXR6(RRR((RsP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR[–s%cCs3|rdt||f}ndt|}d|S(s5
        Return a month name as a table row.
        s%s %ss%ss.<tr><th colspan="7" class="month">%s</th></tr>(R(RR\R]R^RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR_scCs¾g}|j}|dƒ|dƒ||j||d|ƒƒ|dƒ||jƒƒ|dƒx7|j||ƒD]#}||j|ƒƒ|dƒqvW|dƒ|dƒdj|ƒS(s6
        Return a formatted month as a table.
        s@<table border="0" cellpadding="0" cellspacing="0" class="month">s
R^s</table>R(RkR_R[RCRNRX(RR\R]R^RrRsRe((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR`§s    
 
 
 
 
 
icCsïg}|j}t|dƒ}|dƒ|dƒ|d||fƒxtttd|ƒD]w}t|t||dƒƒ}|dƒx>|D]6}|dƒ||j||d    tƒƒ|d
ƒqW|d ƒq]W|d ƒd j|ƒS(s?
        Return a formatted year as a table of tables.
        is?<table border="0" cellpadding="0" cellspacing="0" class="year">s
s.<tr><th colspan="%d" class="year">%s</th></tr>i i s<tr>s<td>R^s</td>s</tr>s</table>R(RkRcR$RERnR`RfRX(RR\RFRrRsRRGRq((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRyºs     
 
 
 
 
s calendar.csscCsæ|dkrtjƒ}ng}|j}|d|ƒ|dƒ|dƒ|dƒ|d|ƒ|dk    r|d|ƒn|d|ƒ|dƒ|d    ƒ||j||ƒƒ|d
ƒ|d ƒd j|ƒj|d ƒS(sB
        Return a formatted year as a complete HTML page.
        s$<?xml version="1.0" encoding="%s"?>
sn<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
s<html>
s<head>
sC<meta http-equiv="Content-Type" content="text/html; charset=%s" />
s4<link rel="stylesheet" type="text/css" href="%s" />
s<title>Calendar for %d</title>
s</head>
s<body>
s</body>
s</html>
RtxmlcharrefreplaceN(tNonetsystgetdefaultencodingRkRyRXtencode(RR\RFtcsstencodingRrRs((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytformatyearpageÐs$     
 
 
 
 
 
 
N(RRRKRƒRSRNRZR[R9R_R`RyR…R‹(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR{xs                    
 t TimeEncodingcBs#eZd„Zd„Zd„ZRS(cCs ||_dS(N(tlocale(RR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRéscCs?tjtjƒ|_tjtj|jƒtjtjƒdS(Ni(t_localet    getlocaletLC_TIMEt    oldlocalet    setlocaleR(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt    __enter__ìscGstjtj|jƒdS(N(RŽR’RR‘(Rtargs((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt__exit__ñs(RRRR“R•(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRŒès        tLocaleTextCalendarcBs2eZdZddd„Zd„Zed„ZRS(s
    This class can be passed a locale name in the constructor and will return
    month and weekday names in the specified locale. If this locale includes
    an encoding all strings containing month and weekday names will be returned
    as unicode.
    icCs8tj||ƒ|dkr+tjƒ}n||_dS(N(RMRR…RŽtgetdefaultlocaleR(RRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRýs cCspt|jƒ[}|dkr't}nt}||}|dk    rU|j|ƒ}n|| j|ƒSWdQXdS(Ni    (RŒRRRR…tdecodeRQ(RR.RFRŠRYtname((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRZs     
 cCsjt|jƒU}t|}|dk    r:|j|ƒ}n|rSd||f}n|j|ƒSWdQXdS(Ns%s %r(RŒRRR…R˜RQ(RR\R]RFR^RŠRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR_s
 N(RRRKR…RRZR9R_(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR–õs     tLocaleHTMLCalendarcBs2eZdZddd„Zd„Zed„ZRS(s
    This class can be passed a locale name in the constructor and will return
    month and weekday names in the specified locale. If this locale includes
    an encoding all strings containing month and weekday names will be returned
    as unicode.
    icCs8tj||ƒ|dkr+tjƒ}n||_dS(N(R{RR…RŽR—R(RRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRs cCsYt|jƒD}t|}|dk    r:|j|ƒ}nd|j||fSWdQXdS(Ns<th class="%s">%s</th>(RŒRRR…R˜Rƒ(RR.RŠRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRZ%s
 
 cCset|jƒP}t|}|dk    r:|j|ƒ}n|rSd||f}nd|SWdQXdS(Ns%s %ss.<tr><th colspan="7" class="month">%s</th></tr>(RŒRRR…R˜(RR\R]R^RŠRR((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR_,s
 N(RRRKR…RRZR9R_(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRšs    cCscy |jWntk
r*t|ƒ‚nXt|koBtknsVt|ƒ‚n|t_dS(N(t    __index__tAttributeErrorRtMONDAYtSUNDAYRpR(R((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR;s  iicCst|||ƒGHdS(s1Prints multi-column formatting for year calendarsN(Ro(tcolsRhtspacing((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRSscs'|d9}|j‡fd†|DƒƒS(sEReturns a string formatted from n strings, centered within n columns.RTc3s|]}|jˆƒVqdS(N(RQ(RURp(Rh(sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pys    <genexpr>[s(RX(RŸRhR ((RhsP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyRoXs
i²c Csq|d \}}}}}}tj||dƒjƒt|d}|d|}|d|}    |    d|}
|
S(sBUnrelated but handy function to calculate Unix timestamp from GMT.iiii<(R%R&t    toordinalt
_EPOCH_ORD( ttupleR+R
R.thourtminutetsecondR7thourstminutestseconds((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyR bs 'c     Csâddl}|jddƒ}|jdddddd    d
d d d ƒ|jdddddd    d
dd dƒ|jdddddd    d
dd dƒ|jdddddd    d
dd dƒ|jddddd
d d d!ƒ|jd"d#dd$d
dd d%ƒ|jd&d'dd(d
dd d)ƒ|jd*d+ddd
d,d-d6d d/ƒ|j|ƒ\}}|jr‘|j r‘|jd0ƒtj    dƒn|j|jf}|j
d.kr‘|jrÍt d$|ƒ}n    t ƒ}|j}|dkrútj ƒ}ntd(|d|jƒ}t|ƒdkrD|jtjjƒj|GHqÞt|ƒd krt|jt|dƒ|GHqÞ|jd1ƒtj    dƒnM|jr¬td$|ƒ}n    tƒ}td2|jd3|jƒ}t|ƒdkrÿ|j|d4<|j|d5<nt|ƒdkr2|jtjjƒj|}n‰t|ƒd krc|jt|dƒ|}nXt|ƒdkr¡|jt|dƒt|d ƒ|}n|jd1ƒtj    dƒ|jrÙ|j|jƒ}n|GHdS(7Niÿÿÿÿtusages%usage: %prog [options] [year [month]]s-ws--widthtdestRFttypetinttdefaultithelps+width of date column (default 2, text only)s-ls--linestlinesis4number of lines for each week (default 1, text only)s-ss    --spacingR is-spacing between months (default 6, text only)s-ms--monthsRGis%months per row (default 3, text only)s-cs--cssR‰s calendar.csssCSS to use for page (html only)s-Ls--localeRs.locale to be used from month and weekday namess-es
--encodingRŠsEncoding to use for outputs-ts--typettexttchoicesthtmlsoutput type (text or html)s/if --locale is specified --encoding is requiredsincorrect number of argumentsRaRbRpRq(stextR³( toptparset OptionParsert
add_optionR…t
parse_argsRRŠterrorR†texitR¬RšR{R‡tdictR‰R@R‹R%R&ttodayR+R­R–RMRFR°R RGRyR`Rˆ(    R”R´tparsertoptionsRRjRŠtoptdicttresult((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pytmainls                                                              !,      t__main__(((ii(DRKR†R%RRŽt__all__t
ValueErrorR¸RRRER0R/RR)RRRRR$RtTUESDAYt    WEDNESDAYtTHURSDAYtFRIDAYtSATURDAYRžRRRRtobjectR3RMR{RŒR–RšRpR5RRRDRRPRNReR[t
weekheaderR    R`R
RyR RzR t    _colwidtht_spacingRRotEPOCHR&R¡R¢R RÀRtargv(((sP/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/calendar.pyt<module>sf       -    !                
…up #                                                    
   \