summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xRun/Que/client.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Run/Que/client.py b/Run/Que/client.py
index ed128b8..e272d6a 100755
--- a/Run/Que/client.py
+++ b/Run/Que/client.py
@@ -35,11 +35,10 @@ def send(args):
req.add_header("Authorization", key)
if args.serve:
while not time.sleep(1):
- with request.urlopen(req, data=data, timeout=MAX_TIMEOUT) as req:
- pass
+ request.urlopen(req, data=data, timeout=MAX_TIMEOUT)
+
else:
- with request.urlopen(req, data=data, timeout=MAX_TIMEOUT) as req:
- pass
+ request.urlopen(req, data=data, timeout=MAX_TIMEOUT)
def recv(args):