From fc473311ed6211dabcc6076c406a90f1cd5da175 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sat, 11 Aug 2018 17:35:43 +0800 Subject: [PATCH] remove unused functions --- tests/debugtalk.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/debugtalk.py b/tests/debugtalk.py index db12b87e..83f91ad3 100644 --- a/tests/debugtalk.py +++ b/tests/debugtalk.py @@ -1,5 +1,3 @@ -import hashlib -import hmac import json import os import random @@ -8,19 +6,9 @@ import time from tests.api_server import HTTPBIN_SERVER, SECRET_KEY, gen_md5, get_sign -try: - import urllib -except NameError: - import urllib.parse as urllib - BASE_URL = "http://127.0.0.1:5000" -get_sign_lambda = lambda *args: hmac.new( - 'DebugTalk'.encode('ascii'), - ''.join(args).encode('ascii'), - hashlib.sha1).hexdigest() - def sum_status_code(status_code, expect_sum): """ sum status code digits e.g. 400 => 4, 201 => 3