mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
aiff.py, calendar.py: change functions taking a tuple to really take a
tuple (now that it makes a difference to Python)
This commit is contained in:
parent
3a997279d5
commit
995c33a2bb
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ def zd(s):
|
||||||
|
|
||||||
# Turn calendar time as returned by gmtime() into a string
|
# Turn calendar time as returned by gmtime() into a string
|
||||||
# (the yday parameter is for compatibility with gmtime())
|
# (the yday parameter is for compatibility with gmtime())
|
||||||
def asctime(year, month, day, hours, mins, secs, yday, wday):
|
def asctime(arg):
|
||||||
|
year, month, day, hours, mins, secs, yday, wday = arg
|
||||||
s = day_abbr[wday] + ' ' + month_abbr[month] + ' ' + zd(`day`)
|
s = day_abbr[wday] + ' ' + month_abbr[month] + ' ' + zd(`day`)
|
||||||
s = s + ' ' + dd(`hours`) + ':' + dd(`mins`) + ':' + dd(`secs`)
|
s = s + ' ' + dd(`hours`) + ':' + dd(`mins`) + ':' + dd(`secs`)
|
||||||
return s + ' ' + `year`
|
return s + ' ' + `year`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue