Skip to content

Commit

Permalink
Merge pull request #7 from Neradoc/windows-line-endings
Browse files Browse the repository at this point in the history
Remove windows line endings from ducky script
  • Loading branch information
FoamyGuy authored Nov 28, 2022
2 parents e0a3044 + 65a6ed8 commit ec38c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_ducky.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(

with open(filename, "r") as duckyscript:
for line in duckyscript:
self.lines.append(line[:-1])
self.lines.append(line[:-1].rstrip("\r"))

def loop( # pylint: disable=too-many-return-statements
self, line: Optional[str] = None
Expand Down

0 comments on commit ec38c9c

Please sign in to comment.