From 5ee832b8b8139b00dc3a252672a2a82f69fd7039 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Wed, 18 May 2022 21:57:18 -0300 Subject: [PATCH] Remove extraneous copyright string on AST Award --- biostools/analyzers.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/biostools/analyzers.py b/biostools/analyzers.py index 1b058cc..586377b 100644 --- a/biostools/analyzers.py +++ b/biostools/analyzers.py @@ -1036,6 +1036,14 @@ class AwardAnalyzer(Analyzer): if self.signon[:1] != 'A': self.debug_print('Using alternate sign-on location') self.signon = util.read_string(file_data[id_block_index + 0x80:id_block_index + 0x180]) + + # Remove extraneous AST copyright from the sign-on. + lines = self.signon.split('\n') + self.signon = '' + for line in lines: + if line[:10] == 'Copyright ' or line[:19] == 'All Rights Reserved': + continue + self.signon += line + '\n' else: # Handle early XT/286 BIOS. match = self._early_pattern.search(file_data)