diff -r 6f447b9ec263 -r 31a6d5e14508 mercurial/archival.py --- a/mercurial/archival.py Tue Aug 30 09:22:53 2016 -0700 +++ b/mercurial/archival.py Thu Sep 01 02:29:46 2016 +0530 @@ -231,7 +231,7 @@ if islink: mode = 0o777 ftype = _UNX_IFLNK - i.external_attr = (mode | ftype) << 16L + i.external_attr = (mode | ftype) << 16 # add "extended-timestamp" extra block, because zip archives # without this will be extracted with unexpected timestamp, # if TZ is not configured as GMT