Skip to content

Commit 7e2df07

Browse files
authored
Fix pylint issues due to pylint update. (#1570)
Fixes #1569
1 parent 89d039a commit 7e2df07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/auto_analyse_raw_data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
"""Attempt an automatic analysis of IRremoteESP8266's Raw data output.
33
Makes suggestions on key values and tried to break down the message
44
into likely chunks."""
55
#
6-
# Copyright 2018 David Conran
6+
# Copyright 2018-2021 David Conran
77
import argparse
88
import sys
99

@@ -724,7 +724,7 @@ def get_rawdata(arg_options):
724724
if arg_options.stdin:
725725
return sys.stdin.read()
726726
if arg_options.file:
727-
with open(arg_options.file) as input_file:
727+
with open(arg_options.file, encoding="utf8") as input_file:
728728
return input_file.read()
729729
else:
730730
return arg_options.rawdata

tools/scrape_supported_devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def getalldevices():
173173
protocol = match.group(1)
174174
for brand, model in supports:
175175
protocolbrand = (protocol, brand)
176-
pbset = sets.allcodes.get(protocolbrand, list())
176+
pbset = sets.allcodes.get(protocolbrand, [])
177177
if model in pbset:
178178
print("Model %s is duplicated for %s, %s" % (model, protocol, brand))
179179
sets.allcodes[protocolbrand] = pbset + [model]

0 commit comments

Comments
 (0)