diff options
author | Matej Tkac <matej.tkac.mt@gmail.com> | 2018-05-11 14:51:26 +0200 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-05-12 19:54:05 +0000 |
commit | f8ac12c5b3f4a506da77fe1106ac1b33785e907f (patch) | |
tree | 4574a449f2a9fd3f80f004b0ffc505e0ef0dd819 | |
parent | 4d800d7b8a83f6aab13558867fbe2118f0228971 (diff) |
html2txt.py: replaced 2 occurences of '{}' with equal '{0}' because of CentOS 6.x+Python2.6.6 issues
Change-Id: Ibf395007e32db70f49b7bdae22fff8c377ae41b0
Reviewed-on: https://code.wireshark.org/review/27457
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rwxr-xr-x | tools/html2text.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/html2text.py b/tools/html2text.py index accd98a2ae..7e783787e4 100755 --- a/tools/html2text.py +++ b/tools/html2text.py @@ -143,7 +143,7 @@ class TextHTMLParser(HTMLParser): self.skip_wrap = False if tag == 'a' and self.href: self.footnotes.append(self.href) - self.text_block += '[{}]'.format(len(self.footnotes)) + self.text_block += '[{0}]'.format(len(self.footnotes)) if tag in self.ignore_tags: self.ignore_level -= 1 @@ -165,7 +165,7 @@ class TextHTMLParser(HTMLParser): self.indent_levels = [1, 1] footnote_num = 1 for href in self.footnotes: - self.text_block += '{:>2}. {}\n'.format(footnote_num, href) + self.text_block += '{0:>2}. {0}\n'.format(footnote_num, href) footnote_num += 1 self._commit_block('\n') |