ewpratten / youtube_ad_blocklist

This is an open project to maintain a list of domain names that serve YouTube ads
GNU General Public License v3.0
674 stars 123 forks source link

Empty lines at end of file #6

Closed ojgarciab closed 3 years ago

ojgarciab commented 3 years ago

All block files have a last empty line which could cause a malfunction:

The worst case is the following file (DNSMASQ):

server=//

Empty line could be removed with a simple filter:

entries = list(filter(None, entries))