File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ def _parse(self, fp):
417
417
item = b_item .decode ().strip ()
418
418
if not item :
419
419
continue
420
+ # Skip over comment lines:
420
421
if item .startswith ('#-#-#-#-#' ) and item .endswith ('#-#-#-#-#' ):
421
422
continue
422
423
k = v = None
Original file line number Diff line number Diff line change @@ -685,6 +685,12 @@ def test_plural_form_error_issue17898(self):
685
685
t = gettext .GNUTranslations (fp )
686
686
687
687
def test_ignore_comments_in_headers_issue36239 (self ):
688
+ """Checks that comments like:
689
+
690
+ #-#-#-#-# messages.po (EdX Studio) #-#-#-#-#
691
+
692
+ are ignored.
693
+ """
688
694
with open (MOFILE , 'wb' ) as fp :
689
695
fp .write (base64 .decodebytes (GNU_MO_DATA_ISSUE_17898 ))
690
696
with open (MOFILE , 'rb' ) as fp :
You can’t perform that action at this time.
0 commit comments