Added exit code

This commit is contained in:
Nikolay 2017-07-07 12:39:03 +03:00 committed by GitHub
parent aab55304fb
commit 74c680b388
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import urllib2, datetime, mmap, re
import urllib2, datetime, mmap, re, sys
## GLOBAL VAR ##
processed_rules = set()
@ -71,5 +71,5 @@ with open('filter.template', 'r') as tmpl:
if line.startswith('url'):
save_url_rule(line, f)
if line.startswith('file'):
save_file_rule(line, f)
save_file_rule(line, f)
sys.exit(0)