Skip to content

Commit

Permalink
Fix some pylint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
scarletcafe committed Jul 7, 2021
1 parent 65d23ac commit b5c5576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ disable=print-statement,
comprehension-escape,
ungrouped-imports,
unsubscriptable-object, # FIXME: this should be REMOVED once pylint fixes the unsubscriptable-object bug on 3.9. do not forget, on pain of death
too-many-instance-attributes
too-many-instance-attributes,
duplicate-code # This picks up stupid things like imports

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down
2 changes: 0 additions & 2 deletions jishaku/paginators.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ class FilePaginator(commands.Paginator):
A shebang present in the actual file will always be prioritized over this.
"""

__encoding_regex = re.compile(br'coding[=:]\s*([-\w.]+)')

def __init__(self, fp, line_span=None, language_hints=(), **kwargs):
language = ''

Expand Down

0 comments on commit b5c5576

Please sign in to comment.