_search_regex's "isatty" call fails with Py2exe's
authorItay Brandes <Brandes.Itay@gmail.com>
Sat, 14 Dec 2013 15:40:51 +0000 (17:40 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 16 Dec 2013 20:50:26 +0000 (21:50 +0100)
commit87a28127d225f698c3cbf77a7f943338a3499d6e
tree23be0878175415a74a941be87871fe737c5f84d5
parentebce53b3d85bc5c099b4fd0ca27d03034d7024ea
_search_regex's "isatty" call fails with Py2exe's

_search_regex calls the sys.stderr.isatty() function for unix systems.

Py2exe uses a custom Stderr() stream which doesn't have an `isatty()`
function, leading to it's crash.

Fixes easily with checking that it's a unix system first.
youtube_dl/extractor/common.py