From bfb02d64a88bf9ca0bbd78cf389c9c648adbf725 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 26 Nov 2015 01:02:07 +0000 Subject: Make poezio.core.struct more Cython-friendly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- poezio/core/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'poezio/core/__init__.py') 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 -- cgit v1.2.3