aboutsummaryrefslogtreecommitdiff
path: root/absl/flags/_argument_parser.py
diff options
context:
space:
mode:
authorYilei Yang <yileiyang@google.com>2017-09-25 09:11:24 -0700
committerYilei Yang <yileiyang@google.com>2017-09-25 10:32:25 -0700
commite6e79faedf577e14291327d091d69a76682a1468 (patch)
tree5195f0a7d9c593065f98c8d2dc2e31e1527a9bc8 /absl/flags/_argument_parser.py
parent99d72774ba05271cf2aa6d9cf80da8508ae48d59 (diff)
downloadabsl-py-e6e79faedf577e14291327d091d69a76682a1468.tar.gz
Use super(Class, self).
PiperOrigin-RevId: 169915592
Diffstat (limited to 'absl/flags/_argument_parser.py')
-rw-r--r--absl/flags/_argument_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/flags/_argument_parser.py b/absl/flags/_argument_parser.py
index aedb8ed..cb57b8d 100644
--- a/absl/flags/_argument_parser.py
+++ b/absl/flags/_argument_parser.py
@@ -416,7 +416,7 @@ class ListParser(BaseListParser):
"""Parser for a comma-separated list of strings."""
def __init__(self):
- BaseListParser.__init__(self, ',', 'comma')
+ super(ListParser, self).__init__(',', 'comma')
def parse(self, argument):
"""Parses argument as comma-separated list of strings."""
@@ -456,7 +456,7 @@ class WhitespaceSeparatedListParser(BaseListParser):
"""
self._comma_compat = comma_compat
name = 'whitespace or comma' if self._comma_compat else 'whitespace'
- BaseListParser.__init__(self, None, name)
+ super(WhitespaceSeparatedListParser, self).__init__(None, name)
def parse(self, argument):
"""Parses argument as whitespace-separated list of strings.