From c1f6581cac4dca582847b057a6a96c0a7b00dd58 Mon Sep 17 00:00:00 2001 From: Henrik Blidh Date: Thu, 8 Nov 2018 22:13:35 +0100 Subject: [PATCH] Version 0.2.2 Made it compliant with Python 3.5 by removing f-strings --- Pipfile | 5 ----- bleak/__version__.py | 2 +- bleak/backends/device.py | 5 +---- setup.py | 2 ++ 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Pipfile b/Pipfile index d3512f38..63e20166 100644 --- a/Pipfile +++ b/Pipfile @@ -25,8 +25,3 @@ wheel = "*" watchdog = "*" coverage = "*" pytest-runner = "*" - - -[requires] - -python_version = "3.6" diff --git a/bleak/__version__.py b/bleak/__version__.py index fe243375..40acf2a1 100644 --- a/bleak/__version__.py +++ b/bleak/__version__.py @@ -1,3 +1,3 @@ # -*- coding: utf-8 -*- -__version__ = "0.2.1" +__version__ = "0.2.2" diff --git a/bleak/backends/device.py b/bleak/backends/device.py index b2613592..dbfcbde8 100644 --- a/bleak/backends/device.py +++ b/bleak/backends/device.py @@ -27,7 +27,4 @@ def __init__(self, address, name, details=None): self.details = details def __str__(self): - return f"{self.address}: {self.name}" - - def __repr__(self): - return f"<{self.__class__.__name__}({self.address}, {self.name})>" + return "{0}: {0}".format(self.address, self.name) diff --git a/setup.py b/setup.py index 281f26df..98bbb014 100644 --- a/setup.py +++ b/setup.py @@ -112,7 +112,9 @@ def run(self): 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: Implementation :: CPython' ], # $ setup.py publish support.