summaryrefslogtreecommitdiff
path: root/yarns/lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/lib.py')
-rw-r--r--yarns/lib.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/yarns/lib.py b/yarns/lib.py
index f3ac9d9..290512c 100644
--- a/yarns/lib.py
+++ b/yarns/lib.py
@@ -1,4 +1,4 @@
-# Copyright 2017-2018 Lars Wirzenius
+# Copyright 2017-2019 Lars Wirzenius
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
@@ -32,7 +32,7 @@ from yarnutils import *
srcdir = os.environ['SRCDIR']
datadir = os.environ['DATADIR']
-vars = Variables(datadir)
+V = Variables(datadir)
def random_free_port():
@@ -101,12 +101,12 @@ def get_token(user):
return cat(filename)
-def http(vars, func, url, **kwargs):
+def http(V, func, url, **kwargs):
status, content_type, headers, body = func(url, **kwargs)
- vars['status_code'] = status
- vars['content_type'] = content_type
- vars['headers'] = headers
- vars['body'] = body
+ V['status_code'] = status
+ V['content_type'] = content_type
+ V['headers'] = headers
+ V['body'] = body
def get(url, token):