aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/vk
diff options
context:
space:
mode:
Diffstat (limited to 'vk')
-rw-r--r--vk/api.py8
-rw-r--r--vk/error.py7
-rw-r--r--vk/last_seen.py7
-rw-r--r--vk/platform.py7
-rw-r--r--vk/tracking/db/__init__.py7
-rw-r--r--vk/tracking/db/backend/__init__.py7
-rw-r--r--vk/tracking/db/backend/csv.py7
-rw-r--r--vk/tracking/db/backend/log.py7
-rw-r--r--vk/tracking/db/backend/null.py7
-rw-r--r--vk/tracking/db/format.py7
-rw-r--r--vk/tracking/db/record.py7
-rw-r--r--vk/tracking/db/timestamp.py7
-rw-r--r--vk/tracking/online_sessions.py7
-rw-r--r--vk/tracking/status_tracker.py7
-rw-r--r--vk/user.py7
15 files changed, 61 insertions, 45 deletions
diff --git a/vk/api.py b/vk/api.py
index 933d3a5..e942172 100644
--- a/vk/api.py
+++ b/vk/api.py
@@ -1,6 +1,7 @@
-# Copyright 2015 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import Iterable
from collections.abc import Mapping
@@ -99,6 +100,7 @@ class API:
response = json.loads(response.read().decode())
if 'response' not in response:
raise vk.error.InvalidAPIResponseError(response)
+ #print(response)
return response['response']
except (ConnectionError, URLError):
raise vk.error.APIConnectionError()
diff --git a/vk/error.py b/vk/error.py
index 4182449..3a309c3 100644
--- a/vk/error.py
+++ b/vk/error.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
class APIError(RuntimeError):
pass
diff --git a/vk/last_seen.py b/vk/last_seen.py
index 9f0c650..ac62d65 100644
--- a/vk/last_seen.py
+++ b/vk/last_seen.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import OrderedDict
from collections.abc import MutableMapping
diff --git a/vk/platform.py b/vk/platform.py
index 5f87e41..fa1e665 100644
--- a/vk/platform.py
+++ b/vk/platform.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from enum import Enum
import re
diff --git a/vk/tracking/db/__init__.py b/vk/tracking/db/__init__.py
index 9e6b74a..8019244 100644
--- a/vk/tracking/db/__init__.py
+++ b/vk/tracking/db/__init__.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from .format import Format
diff --git a/vk/tracking/db/backend/__init__.py b/vk/tracking/db/backend/__init__.py
index 68de924..58b5a9a 100644
--- a/vk/tracking/db/backend/__init__.py
+++ b/vk/tracking/db/backend/__init__.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from . import csv, log, null
diff --git a/vk/tracking/db/backend/csv.py b/vk/tracking/db/backend/csv.py
index 10a504f..f20c617 100644
--- a/vk/tracking/db/backend/csv.py
+++ b/vk/tracking/db/backend/csv.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections.abc import Iterable
import csv
diff --git a/vk/tracking/db/backend/log.py b/vk/tracking/db/backend/log.py
index 03548eb..6eebc35 100644
--- a/vk/tracking/db/backend/log.py
+++ b/vk/tracking/db/backend/log.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
import logging
diff --git a/vk/tracking/db/backend/null.py b/vk/tracking/db/backend/null.py
index 139a9f0..6454f84 100644
--- a/vk/tracking/db/backend/null.py
+++ b/vk/tracking/db/backend/null.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections.abc import Iterable
diff --git a/vk/tracking/db/format.py b/vk/tracking/db/format.py
index 862c20e..9d5c6e4 100644
--- a/vk/tracking/db/format.py
+++ b/vk/tracking/db/format.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from enum import Enum
diff --git a/vk/tracking/db/record.py b/vk/tracking/db/record.py
index 2bd17c1..c03c3ca 100644
--- a/vk/tracking/db/record.py
+++ b/vk/tracking/db/record.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import OrderedDict
from collections.abc import MutableMapping
diff --git a/vk/tracking/db/timestamp.py b/vk/tracking/db/timestamp.py
index 35cf5b3..b2219ca 100644
--- a/vk/tracking/db/timestamp.py
+++ b/vk/tracking/db/timestamp.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from datetime import datetime, timezone
diff --git a/vk/tracking/online_sessions.py b/vk/tracking/online_sessions.py
index debf1e6..204e1cc 100644
--- a/vk/tracking/online_sessions.py
+++ b/vk/tracking/online_sessions.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import OrderedDict
from collections.abc import MutableMapping
diff --git a/vk/tracking/status_tracker.py b/vk/tracking/status_tracker.py
index c357274..d47de39 100644
--- a/vk/tracking/status_tracker.py
+++ b/vk/tracking/status_tracker.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections.abc import Callable
import time
diff --git a/vk/user.py b/vk/user.py
index 08ce5bb..f63f793 100644
--- a/vk/user.py
+++ b/vk/user.py
@@ -1,6 +1,7 @@
-# Copyright 2016 Egor Tensin <Egor.Tensin@gmail.com>
-# This file is licensed under the terms of the MIT License.
-# See LICENSE.txt for details.
+# Copyright (c) 2016 Egor Tensin <Egor.Tensin@gmail.com>
+# This file is part of the "VK scripts" project.
+# For details, see https://github.com/egor-tensin/vk-scripts.
+# Distributed under the MIT License.
from collections import OrderedDict
from collections.abc import Hashable, Mapping, MutableMapping