summaryrefslogtreecommitdiff
path: root/Lib/plat-mac/macfs.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-15 16:59:06 +0000
committerGuido van Rossum <guido@python.org>2007-01-15 16:59:06 +0000
commite2a383d062434c05b73031f0da57fe82b9da8942 (patch)
tree1a6fb6b2c056a10ee227dbc75855b3fac6153414 /Lib/plat-mac/macfs.py
parentfc7bb8c786fd9cb3b1ab84e1976620d0ab545777 (diff)
downloadcpython-git-e2a383d062434c05b73031f0da57fe82b9da8942.tar.gz
Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
Diffstat (limited to 'Lib/plat-mac/macfs.py')
-rw-r--r--Lib/plat-mac/macfs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/plat-mac/macfs.py b/Lib/plat-mac/macfs.py
index 73815aeb3f..6ec4bef8d6 100644
--- a/Lib/plat-mac/macfs.py
+++ b/Lib/plat-mac/macfs.py
@@ -28,24 +28,24 @@ smAllScripts = -3
# Find the epoch conversion for file dates in a way that works on OS9 and OSX
import time
if time.gmtime(0)[0] == 1970:
- _EPOCHCONVERT = -((1970-1904)*365 + 17) * (24*60*60) + 0x100000000L
+ _EPOCHCONVERT = -((1970-1904)*365 + 17) * (24*60*60) + 0x100000000
def _utc2time(utc):
t = utc[1] + _EPOCHCONVERT
return int(t)
def _time2utc(t):
t = int(t) - _EPOCHCONVERT
if t < -0x7fffffff:
- t = t + 0x10000000L
+ t = t + 0x10000000
return (0, int(t), 0)
else:
def _utc2time(utc):
t = utc[1]
if t < 0:
- t = t + 0x100000000L
+ t = t + 0x100000000
return t
def _time2utc(t):
if t > 0x7fffffff:
- t = t - 0x100000000L
+ t = t - 0x100000000
return (0, int(t), 0)
# The old name of the error object: