diff options
author | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-08-16 23:24:24 +0530 |
---|---|---|
committer | Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> | 2017-08-19 20:04:47 +0530 |
commit | 04ff790139e79c9402f44d412857a351b58e55ad (patch) | |
tree | 3130704101de679da45acf730469c512ef02b251 /sphinx/io.py | |
parent | b2f841fcaa34b4bde49325917a406c4bc15a5b05 (diff) | |
download | sphinx-git-04ff790139e79c9402f44d412857a351b58e55ad.tar.gz |
remove unnecessary else clauses in for loop
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index 8f048c7fc..8813cb3b6 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -166,8 +166,7 @@ class SphinxFileInput(FileInput): if isinstance(parser_class, string_types): parser_class = import_object(parser_class, 'source parser') # type: ignore # NOQA return parser_class.supported - else: - return ('restructuredtext',) + return ('restructuredtext',) data = FileInput.read(self) if self.app: |