youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit f48d3e9bbcd00b436f9d81233b1e89ad53f7d6a7
parent fbf94a78158ea2ea70dcbc1599036a64bb3321c3
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Mon, 17 Nov 2014 08:02:48 +0100

[swfinterp] Improve undefined representation

Diffstat:
Myoutube_dl/swfinterp.py | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py @@ -170,6 +170,10 @@ class _Undefined(object): def __hash__(self): return 0 + def __str__(self): + return 'undefined' + __repr__ = __str__ + undefined = _Undefined() @@ -686,6 +690,7 @@ class SWFInterpreter(object): res = _builtin_classes[mname] else: # Assume unitialized + # TODO warn here res = undefined stack.append(res) elif opcode == 97: # setproperty