Debian Codegraph @

debian/patches/remove-six.patch

raw
1 --- a/robot_detection.py
2 +++ b/robot_detection.py
3 @@ -1,7 +1,6 @@
4 from __future__ import print_function
5
6 import sys, os.path, codecs, re
7 -import six
8
9 robot_useragents = [
10 'appie',
11 @@ -661,7 +660,7 @@
12 robot_useragents = [re.compile(x) for x in robot_useragents]
13
14 def is_robot(user_agent):
15 - if not isinstance(user_agent, six.string_types):
16 + if not isinstance(user_agent, str):
17 raise TypeError
18 if len(user_agent) == 0:
19 raise ValueError
20 --- a/setup.py
21 +++ b/setup.py
22 @@ -13,7 +13,6 @@
23 license="GPLv3+",
24 test_suite='tests',
25 install_requires = [
26 - "six",
27 ],
28 classifiers=[
29 'Development Status :: 4 - Beta',