From 3673c0799485b517e6de5ddf5fdbe4bc18c044f3 Mon Sep 17 00:00:00 2001 From: Hugo Date: Tue, 17 Dec 2019 22:47:39 +0200 Subject: [PATCH] Concatenate strings, post-Black --- .pre-commit-config.yaml | 2 ++ src/pylast/__init__.py | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7c3d29b..a045aa6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,6 +9,7 @@ repos: rev: 19.10b0 hooks: - id: black + args: ["--target-version", "py35"] # override until resolved: https://github.com/psf/black/issues/402 files: \.pyi?$ types: [] @@ -32,4 +33,5 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.4.0 hooks: + - id: check-merge-conflict - id: check-yaml diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 18fe9a6..3e6038d 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -36,9 +36,7 @@ from xml.dom import Node, minidom from . import version __author__ = "Amr Hassan, hugovk, Mice Pápai" -__copyright__ = ( - "Copyright (C) 2008-2010 Amr Hassan, 2013-2019 hugovk, " "2017 Mice Pápai" -) +__copyright__ = "Copyright (C) 2008-2010 Amr Hassan, 2013-2019 hugovk, 2017 Mice Pápai" __license__ = "apache2" __email__ = "amr.hassan@gmail.com" __version__ = version.__version__ @@ -903,7 +901,7 @@ class _Request: headers = { "Content-type": "application/x-www-form-urlencoded", "Accept-Charset": "utf-8", - "User-Agent": "pylast" + "/" + __version__, + "User-Agent": "pylast/" + __version__, } (host_name, host_subdir) = self.network.ws_server