From e9b318b4c65607326f596d0f9577a25f0674c5a4 Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Thu, 9 Jun 2022 16:35:26 +0200 Subject: [PATCH] Typos --- src/bootstraparse/modules/context_mngr.py | 4 ++-- src/bootstraparse/modules/error_mngr.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bootstraparse/modules/context_mngr.py b/src/bootstraparse/modules/context_mngr.py index 2cd6d5b..4a0e29b 100644 --- a/src/bootstraparse/modules/context_mngr.py +++ b/src/bootstraparse/modules/context_mngr.py @@ -130,7 +130,7 @@ class BaseContainer: def __iter__(self): """ - :rtype : iter[syntax.SemanticType] + :ytype : iter[syntax.SemanticType] """ for content in self.content: yield content @@ -617,7 +617,7 @@ class ContextManager: def __iter__(self): """ Iterator over the pile. - :rtype: BaseContainer + :ytype: BaseContainer """ for e in self.pile: if e: diff --git a/src/bootstraparse/modules/error_mngr.py b/src/bootstraparse/modules/error_mngr.py index 0e95ae7..837b99b 100644 --- a/src/bootstraparse/modules/error_mngr.py +++ b/src/bootstraparse/modules/error_mngr.py @@ -15,7 +15,6 @@ from bootstraparse.modules.tools import __GLk # __GFi, __GFu, __GL # Define the error codes _ERRORS = ["ParsingError", "MismatchedContainerError"] -__all__ = _ERRORS+[] def init_logging(filename=None, loglevel="ERROR", filemode='w', handler=None):