diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-03-20 17:48:03 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-03-20 17:57:28 -0500 |
| commit | 9d2270a979b3d3ce107a2ea830b6bf7beecb1fdc (patch) | |
| tree | 86857c14ff70e7f66aeb7053c3c85f90c303ef57 /locale/circuitpython.pot | |
| parent | 98f5cf25a5a3da98bba099a3ce375b286942bb12 (diff) | |
runtime: Improve error message when setting read-only property
Formerly, if you wrote
SPI.frequency = 0
you would get the sightly erroneous error message
AttributeError: 'SPI' object has no attribute 'frequency'
In this case, a better message would read
AttributeError: 'SPI' object cannot assign attribute 'frequency'
This new message will both be used in the case where the attribute doesn't
exist at all (and the object has no dynamic attributes; most instances of
built in types behave this way), or if the attribute exists but is
read-only.
Diffstat (limited to 'locale/circuitpython.pot')
| -rw-r--r-- | locale/circuitpython.pot | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/locale/circuitpython.pot b/locale/circuitpython.pot index 352178a93..53ee64795 100644 --- a/locale/circuitpython.pot +++ b/locale/circuitpython.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-03-17 16:39-0500\n" +"POT-Creation-Date: 2020-03-20 17:57-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -133,6 +133,10 @@ msgstr "" msgid "'%s' integer 0x%x does not fit in mask 0x%x" msgstr "" +#: py/runtime.c +msgid "'%s' object cannot assign attribute '%q'" +msgstr "" + #: py/proto.c msgid "'%s' object does not support '%q'" msgstr "" |
