mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-08 17:12:51 +01:00
Allow --infile missing last newline.
This commit is contained in:
parent
f115d68e52
commit
8a84043d29
1 changed files with 3 additions and 3 deletions
|
|
@ -217,10 +217,10 @@ def main(argv=None,
|
|||
if options.infile:
|
||||
with open(options.infile,"r") as infile:
|
||||
#print "File exists and is readable"
|
||||
|
||||
#fileurls = [line.strip() for line in infile]
|
||||
for url in infile:
|
||||
url = url[:url.find('#')].strip()
|
||||
if '#' in url:
|
||||
url = url[:url.find('#')].strip()
|
||||
url = url.strip()
|
||||
if len(url) > 0:
|
||||
#print "URL: (%s)"%url
|
||||
urls.append(url)
|
||||
|
|
|
|||
Loading…
Reference in a new issue