Skip to content

Commit

Permalink
remove oopsie
Browse files Browse the repository at this point in the history
  • Loading branch information
spyoungtech committed Mar 25, 2020
1 parent d2a757b commit 26e8d94
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions yamllint/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@
from yamllint.config import YamlLintConfig, YamlLintConfigError
from yamllint.linter import PROBLEM_LEVELS


def determine_encoding(file_path):
with open(file_path, 'rb')
if isinstance(self.raw_buffer, bytes):
if self.raw_buffer.startswith(codecs.BOM_UTF16_LE):
self.raw_decode = codecs.utf_16_le_decode
self.encoding = 'utf-16-le'
elif self.raw_buffer.startswith(codecs.BOM_UTF16_BE):
self.raw_decode = codecs.utf_16_be_decode
self.encoding = 'utf-16-be'
else:
self.raw_decode = codecs.utf_8_decode
self.encoding = 'utf-8'

def find_files_recursively(items, conf):
for item in items:
if os.path.isdir(item):
Expand Down

0 comments on commit 26e8d94

Please sign in to comment.