From: Scott Shawcroft Date: Fri, 29 Jun 2018 20:40:26 +0000 (-0700) Subject: Switch to a function for const and package it. X-Git-Tag: 0.1.5 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/e4198053de01dbf5335d9b4187c3f266172b6809 Switch to a function for const and package it. --- diff --git a/setup.py b/setup.py index aace60a..19eb99a 100755 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ setup( 'microcontroller' ], # If your package is a single module, use this instead of 'packages': - py_modules=['bitbangio', 'board', 'busio', 'digitalio'], + py_modules=['bitbangio', 'board', 'busio', 'digitalio', 'micropython'], install_requires=['Adafruit-GPIO'], license='MIT', classifiers=[ diff --git a/src/micropython.py b/src/micropython.py old mode 100644 new mode 100755 index 7aaaca6..b5af9b3 --- a/src/micropython.py +++ b/src/micropython.py @@ -1,3 +1,2 @@ -class const: - def __new__(self, x): - return x +def const(x): + return x