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.",