From ab360b88ad3dcced2f6a3dacdbe69a6d68f6e9ff Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Sun, 4 Apr 2021 21:29:17 +0200 Subject: [PATCH] Clarify variable names --- src/syslogmp/stream.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/syslogmp/stream.py b/src/syslogmp/stream.py index 4d39281..2f6c2ee 100644 --- a/src/syslogmp/stream.py +++ b/src/syslogmp/stream.py @@ -36,9 +36,9 @@ class Stream: def inner(): predicate = create_match_predicate(stop_byte) - for x in self.iterator: - yield x - if not predicate(x): + for code_point in self.iterator: + yield code_point + if not predicate(code_point): return return bytes(inner()) @@ -50,4 +50,4 @@ class Stream: def create_match_predicate(value_to_match): value_to_match = ord(value_to_match) - return lambda x: x != value_to_match + return lambda cp: cp != value_to_match -- 2.45.2