Bug 1333564 - [manifestparser] Stop supporting ';' as a valid comment character, r=jmaher

It turns out there are shockingly few cases of manifestparser manifests that actually use the ';'
character as a comment. Because we will soon allow inline comments, deprecating the use of ';' will
ensure that values are allowed to have semicolons in them.

Even without inline comments, might as well enforce consistency across manifests.

MozReview-Commit-ID: AEPPQFdNXG0
This commit is contained in:
Andrew Halberstadt
2017-01-25 14:38:37 -05:00
parent 7a36b4a276
commit 3f9cbf87a1
13 changed files with 37 additions and 58 deletions

View File

@@ -1433,7 +1433,7 @@ class RecursiveMakeBackend(CommonBackend):
def _write_master_test_manifest(self, path, manifests):
with self._write_file(path) as master:
master.write(
'; THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT MODIFY BY HAND.\n\n')
'# THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT MODIFY BY HAND.\n\n')
for manifest in sorted(manifests):
master.write('[include:%s]\n' % manifest)

View File

@@ -519,7 +519,7 @@ class TestRecursiveMakeBackend(BackendTester):
lines = [l.strip() for l in open(x_master, 'rt').readlines()]
self.assertEqual(lines, [
'; THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT MODIFY BY HAND.',
'# THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT MODIFY BY HAND.',
'',
'[include:dir1/xpcshell.ini]',
'[include:xpcshell.ini]',