HomeSoftware Heritage

Update directory detection for `get_unstaged_changes` for Python 3 - fix #684

Description

Update directory detection for get_unstaged_changes for Python 3 - fix #684

The exception raised when trying to read a directory changed from an IOError
in Python 2 to an IsADirectoryError in Python 3 (IsADirectoryError is a
subclass of OSError).

IsADirectoryError doesn't exists in Python 2 so we have to makes extra hops
to have a check compatible with both Python 2 and Python 3.

Details

Provenance
Boris Feld <lothiraldan@gmail.com>Authored on Feb 9 2019, 1:41 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW9599545b541a: Fix encoding.
Branches
Unknown
Tags
Unknown

Event Timeline