Fix Python 3 warning
ClosedPublic

Authored by ngraham on Dec 24 2018, 3:03 AM.

Details

Summary

This tool currently prints a warning when run with Python 3:

./list_dependencies:147: FutureWarning: Possible nested set at position 9
  result = re.search('(^[^[]*)[[](.*)]$', item)

This patch fixes the issue.

Test Plan

No more warnings on Python 3 and still works
Still works just fine with Python 2

Diff Detail

Repository
R499 Metadata for build scripts
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham requested review of this revision.Dec 24 2018, 3:03 AM
ngraham created this revision.
mpyne accepted this revision.Dec 25 2018, 1:23 AM
This revision is now accepted and ready to land.Dec 25 2018, 1:23 AM
Closed by commit R499:0855447437d5: Fix Python 3 warning (authored by Nate Graham <pointedstick@zoho.com>). · Explain WhyDec 26 2018, 12:24 AM
This revision was automatically updated to reflect the committed changes.