( )⚙ D10376 re2: adjust local variable assignment scope

This is an archive of the discontinued Mercurial Phabricator instance.

re2: adjust local variable assignment scope
ClosedPublic

Authored by mharbison72 on Apr 13 2021, 12:02 AM.

Details

Summary

Pytype flagged the exception handler where these are used as [name-error], and
PyCharm complained they may be used before assignment.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

mharbison72 created this revision.Apr 13 2021, 12:02 AM

The commit this fixes is on stable, but since the test to run pytype is on default, it probably doesn't matter where it goes.

pulkit accepted this revision.Apr 13 2021, 8:54 AM
This revision is now accepted and ready to land.Apr 13 2021, 8:54 AM
This revision was automatically updated to reflect the committed changes.