mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Update the code to better reflect recommended style:
Use != instead of <> since <> is documented as "obsolescent". Use "is" and "is not" when comparing with None or type objects.
This commit is contained in:
parent
63596aeb33
commit
132dce2246
55 changed files with 520 additions and 519 deletions
|
@ -4,12 +4,12 @@ time.altzone
|
|||
time.clock()
|
||||
t = time.time()
|
||||
time.asctime(time.gmtime(t))
|
||||
if time.ctime(t) <> time.asctime(time.localtime(t)):
|
||||
print 'time.ctime(t) <> time.asctime(time.localtime(t))'
|
||||
if time.ctime(t) != time.asctime(time.localtime(t)):
|
||||
print 'time.ctime(t) != time.asctime(time.localtime(t))'
|
||||
|
||||
time.daylight
|
||||
if long(time.mktime(time.localtime(t))) <> long(t):
|
||||
print 'time.mktime(time.localtime(t)) <> t'
|
||||
if long(time.mktime(time.localtime(t))) != long(t):
|
||||
print 'time.mktime(time.localtime(t)) != t'
|
||||
|
||||
time.sleep(1.2)
|
||||
tt = time.gmtime(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue