Use empty string instead of None.

This commit is contained in:
Michael Herzberg 2017-07-31 16:19:54 +01:00
parent 4cc8a2695e
commit eac88001c3
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ def process_date(extdir, ext_id, date, greps, out_f):
if re.search(gr, line):
args = [
ext_id, date,
name.replace("|", "<PIPE>") if name else None,
str(downloads) if downloads else None,
name.replace("|", "<PIPE>") if name is not None else "",
str(downloads) if downloads is not None else "",
str(jslocs), gr,
in_zip_f.filename + " (line " + str(i + 1) + ")",
line