Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

with_used_before_assign.py 304B

1234567891011
  1. '''
  2. Regression test for
  3. https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing
  4. '''
  5. from __future__ import with_statement
  6. def do_nothing():
  7. """ empty """
  8. with open("") as ctx.obj: # [undefined-variable]
  9. context.do() # [used-before-assignment]
  10. context = None