diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-11-26 01:02:07 +0000 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-06-11 20:49:46 +0100 |
commit | bfb02d64a88bf9ca0bbd78cf389c9c648adbf725 (patch) | |
tree | 958c11b8287e80edc13ee19a14016e2db150c6ac /poezio/core/__init__.py | |
parent | 721756c5c1512e05f44637afe22b25506889d62a (diff) | |
download | poezio-bfb02d64a88bf9ca0bbd78cf389c9c648adbf725.tar.gz poezio-bfb02d64a88bf9ca0bbd78cf389c9c648adbf725.tar.bz2 poezio-bfb02d64a88bf9ca0bbd78cf389c9c648adbf725.tar.xz poezio-bfb02d64a88bf9ca0bbd78cf389c9c648adbf725.zip |
Make poezio.core.struct more Cython-friendly.
Status and Command are now slotted classes instead of namedtuples,
which led to a few changes to access them with their named parameters
instead of as a tuple.
“short” being a C type, I renamed Command.short into
Command.short_desc, which is more explicit anyway.
I also renamed possible_show into POSSIBLE_SHOW, as it is a
module-level constant dict.
Diffstat (limited to 'poezio/core/__init__.py')
-rw-r--r-- | poezio/core/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/poezio/core/__init__.py b/poezio/core/__init__.py index 6a82e2bb..fd3d0283 100644 --- a/poezio/core/__init__.py +++ b/poezio/core/__init__.py @@ -1,8 +1,7 @@ """ -Core class, splitted into smaller chunks +Core class, split into smaller chunks """ from . core import Core -from . structs import Command, Status, possible_show, DEPRECATED_ERRORS, \ - ERROR_AND_STATUS_CODES +from . structs import Command, Status |