wangyifang280 / google-safe-browsing

Automatically exported from code.google.com/p/google-safe-browsing
0 stars 0 forks source link

client has incorrect number of arguments #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Fixing the pre-post update hook problem gives another error.

python ./client.py check xxx
/Users/nickgalbreath/googlesafebrowsing/server.py:676: SyntaxWarning: assertion 
is always true, perhaps remove parentheses?
  assert(len(self._prefixes),
/Users/nickgalbreath/googlesafebrowsing/server.py:713: SyntaxWarning: assertion 
is always true, perhaps remove parentheses?
  assert(len(self._prefixes),
/Users/nickgalbreath/googlesafebrowsing/server.py:29: DeprecationWarning: the 
sha module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "./client.py", line 419, in <module>
    main(sys.argv)
  File "./client.py", line 412, in main
    CheckForUrl(argv[1:])
  File "./client.py", line 395, in CheckForUrl
    post_update_hook=checker.Updated)
TypeError: __init__() takes at least 3 non-keyword arguments (2 given)

Original issue reported on code.google.com by nickgsup...@gmail.com on 27 Jul 2010 at 10:03