Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f07db8

Browse files
committed
fix for that float() report from Shaohua Pan
1 parent a43eb64 commit 1f07db8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/core/target.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def __setOutputResume():
141141
if url[0] == "[":
142142
url = url[1:]
143143

144-
if value[-1] == "\n":
145-
value = value[:-1]
144+
value = value.rstrip('\r\n') #strips both chars independently
146145

147146
if url not in ( conf.url, conf.hostname ):
148147
continue

0 commit comments

Comments
 (0)