Skip to content

Commit ec38c9c

Browse files
authored
Merge pull request #7 from Neradoc/windows-line-endings
Remove windows line endings from ducky script
2 parents e0a3044 + 65a6ed8 commit ec38c9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ducky.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __init__(
132132

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

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

0 commit comments

Comments
 (0)