Skip to content

Commit

Permalink
[fixed] the imported module 'codecs' is reundant, it was previously i…
Browse files Browse the repository at this point in the history
…mported
  • Loading branch information
slowy07 committed Jul 18, 2021
1 parent 28cb5b7 commit 9850e05
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions yapf/yapflib/py3compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
StringIO = io.StringIO
BytesIO = io.BytesIO

import codecs

def open_with_encoding(filename, mode, encoding, newline=''): # pylint: disable=unused-argument
return codecs.open(filename, mode=mode, encoding=encoding)

Expand Down

0 comments on commit 9850e05

Please sign in to comment.