~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to utilities/format-imports

  • Committer: Gavin Panella
  • Date: 2011-04-18 16:19:13 UTC
  • mto: This revision was merged to the branch mainline in revision 12859.
  • Revision ID: gavin.panella@canonical.com-20110418161913-w2zuhtis8e68uudx
Convert python_standard_libs into a frozenset in format-imports because it's only ever used for membership tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
sys.path[0:0] = [os.path.dirname(__file__)]
137
137
from python_standard_libs import python_standard_libs
138
138
 
 
139
# python_standard_libs is only used for membership tests.
 
140
python_standard_libs = frozenset(python_standard_libs)
139
141
 
140
142
# To search for escaped newline chars.
141
143
escaped_nl_regex = re.compile("\\\\\n", re.M)