From 7ce1f8379d7ce742a9f502b4c4a02af3480a9d54 Mon Sep 17 00:00:00 2001 From: Kattni Rembor Date: Thu, 9 Apr 2020 17:35:34 -0400 Subject: [PATCH] Black reformatting with Python 3 target. --- adafruit_featherwing/led_segments.py | 2 +- adafruit_featherwing/matrix_featherwing.py | 2 +- docs/conf.py | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/adafruit_featherwing/led_segments.py b/adafruit_featherwing/led_segments.py index d8578b8..2d11ca7 100755 --- a/adafruit_featherwing/led_segments.py +++ b/adafruit_featherwing/led_segments.py @@ -106,5 +106,5 @@ def brightness(self): @brightness.setter def brightness(self, brightness): if not 0 <= brightness <= 15: - raise ValueError('Brightness must be a value between 0 and 15') + raise ValueError("Brightness must be a value between 0 and 15") self._segments.brightness = brightness / 15 diff --git a/adafruit_featherwing/matrix_featherwing.py b/adafruit_featherwing/matrix_featherwing.py index 18e632a..1c96440 100755 --- a/adafruit_featherwing/matrix_featherwing.py +++ b/adafruit_featherwing/matrix_featherwing.py @@ -179,5 +179,5 @@ def brightness(self): @brightness.setter def brightness(self, brightness): if not 0 <= brightness <= 15: - raise ValueError('Brightness must be a value between 0 and 15') + raise ValueError("Brightness must be a value between 0 and 15") self._matrix.brightness = brightness / 15 diff --git a/docs/conf.py b/docs/conf.py index 79bc723..b3aa95a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,18 +43,18 @@ master_doc = "index" # General information about the project. -project = u"Adafruit FeatherWing Library" -copyright = u"2017 Scott Shawcroft" -author = u"Scott Shawcroft" +project = "Adafruit FeatherWing Library" +copyright = "2017 Scott Shawcroft" +author = "Scott Shawcroft" # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = u"1.0" +version = "1.0" # The full version, including alpha/beta/rc tags. -release = u"1.0" +release = "1.0" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -144,7 +144,7 @@ ( master_doc, "AdafruitfeatherwingLibrary.tex", - u"Adafruitfeatherwing Library Documentation", + "Adafruitfeatherwing Library Documentation", author, "manual", ), @@ -158,7 +158,7 @@ ( master_doc, "Adafruitfeatherwinglibrary", - u"Adafruit featherwing Library Documentation", + "Adafruit featherwing Library Documentation", [author], 1, ) @@ -173,7 +173,7 @@ ( master_doc, "AdafruitfeatherwingLibrary", - u"Adafruit featherwing Library Documentation", + "Adafruit featherwing Library Documentation", author, "AdafruitfeatherwingLibrary", "One line description of project.",