Files
deb-python-pygit2/pygit2/remote.py
J. David Ibáñez f5aa1829ac Do not use hasattr, not robust
In Python versions older than 3.2 hasattr is not robust as it masks real
errors. And usually is not efficient as a call to hasattr is often
followed by another call to getattr. It is best to avoid using it
completely.

See https://docs.python.org/3/whatsnew/3.2.html#other-language-changes
2015-10-11 11:58:07 +02:00

19 KiB