Skip to content

Commit 65a6ed8

Browse files
committed
remove windows line endings from ducky script
1 parent e0a3044 commit 65a6ed8

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)