[compat] Do not compare None <= 0
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 6 Oct 2015 12:28:14 +0000 (14:28 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 6 Oct 2015 12:30:43 +0000 (14:30 +0200)
commit4810c48d6d7e950c2cb1203f4d07bea1ba02c1e1
tree8a75c643e301b2b24ddeaa08de690b2533cf372e
parentc4af7684d85a17441c5f6f0b6e9f8c470644fec0
[compat] Do not compare None <= 0

The result is meaningless (and it emits a warning in cpython2 when called with -3), so handle None before making integer comparisons.
youtube_dl/compat.py