mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-22 23:38:57 +00:00
stuff found on "Porting to Python 3.3"
This commit is contained in:
parent
8e13d315bb
commit
0be62d4233
2 changed files with 2 additions and 2 deletions
|
@ -438,7 +438,7 @@ def do_list(self, args):
|
|||
pass
|
||||
try:
|
||||
mtime = datetime.fromtimestamp(bigint_to_int(item[b'mtime']) / 1e9)
|
||||
except ValueError:
|
||||
except OverflowError:
|
||||
# likely a broken mtime and datetime did not want to go beyond year 9999
|
||||
mtime = datetime(9999, 12, 31, 23, 59, 59)
|
||||
if b'source' in item:
|
||||
|
|
2
setup.py
2
setup.py
|
@ -211,7 +211,7 @@ def run(self):
|
|||
Extension('borg.chunker', [chunker_source]),
|
||||
Extension('borg.hashindex', [hashindex_source])
|
||||
]
|
||||
if sys.platform.startswith('linux'):
|
||||
if sys.platform == 'linux':
|
||||
ext_modules.append(Extension('borg.platform_linux', [platform_linux_source], libraries=['acl']))
|
||||
elif sys.platform.startswith('freebsd'):
|
||||
ext_modules.append(Extension('borg.platform_freebsd', [platform_freebsd_source]))
|
||||
|
|
Loading…
Reference in a new issue