pylint #20067 AttributeError: 'NoneType' object has no attribute 'name' with with [resolved]

def foo(self):
    with file('x'):
        bar.baz
        bar = 7

gives
AttributeError: 'NoneType' object has no attribute 'name'

pylint-0.19.0-1.fc12.noarch
python-logilab-astng-0.19.3-1.fc12.noarch
https://bugzilla.redhat.com/show_bug.cgi?id=558943
prioritynormal
typebug
done in0.21.0
load0.100
load left0.000
closed by<not specified>