File: 01-use_global_publicsuffix_list.patch

package info (click to toggle)
python-publicsuffix 1.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 232 kB
  • ctags: 43
  • sloc: python: 264; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 585 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
From: Evgeni Golov <evgeni@debian.org>
Subject: Use the public suffix list provided by the publicsuffix package
Forwarded: not-needed

diff --git a/publicsuffix.py b/publicsuffix.py
index 5488ab2..18ba329 100644
--- a/publicsuffix.py
+++ b/publicsuffix.py
@@ -17,7 +17,7 @@ class PublicSuffixList(object):
 		"""
 
 		if input_file is None:
-			input_path = os.path.join(os.path.dirname(__file__), 'publicsuffix.txt')
+			input_path = '/usr/share/publicsuffix/effective_tld_names.dat'
 			input_file = codecs.open(input_path, "r", "utf8")
 
 		root = self._build_structure(input_file)