summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/safe_browsing/download_update.py
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/safe_browsing/download_update.py')
-rwxr-xr-xchrome/test/data/safe_browsing/download_update.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/chrome/test/data/safe_browsing/download_update.py b/chrome/test/data/safe_browsing/download_update.py
deleted file mode 100755
index 717025c..0000000
--- a/chrome/test/data/safe_browsing/download_update.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/python
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import urllib,sys
-
-
-url = 'http://safebrowsing.clients.google.com/safebrowsing/downloads?client=googleclient&appver=1.0&pver=2.1'
-
-if len(sys.argv) == 1:
- data = 'goog-phish-shavar;\ngoog-malware-shavar;\n'
-else:
- post_data_file = sys.argv[1]
- file = open(post_data_file, "r")
- data = file.read()
- file.close
-
-response = urllib.urlopen(url, data)
-
-response_file = open("response", "r+")
-response_file.write(response.read())
-response_file.seek(0)
-
-counter = 0
-
-for line in response_file:
- if not line.startswith('u:'):
- continue
-
- chunk_url = 'http://' + line[2:]
- filename = chunk_url[chunk_url.rfind('/') + 1:]
- filename = "%03d" % counter + filename[0:filename.rfind('_')]
- counter += 1
-
- urllib.urlretrieve(chunk_url, filename)
-
-response_file.close()