Skip to content

Commit 5dc4b54

Browse files
authored
Update README.md (#13)
docs: correct handler variable name in README file.
1 parent b836651 commit 5dc4b54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import sys
6565
logger = logging.getLogger(__name__)
6666
message_handler = logging.StreamHandler(sys.stdout)
6767
message_handler.setFormatter(MessageFormatter())
68-
logger.addHandler(handler)
68+
logger.addHandler(message_handler)
6969

7070
values_handler = logging.StreamHandler(sys.stderr)
7171
values_handler.setFormatter(ValuesFormatter())
@@ -230,4 +230,4 @@ element = html(t'<{Magic} id="wow"><b>FUN!</b></{Magic}>')
230230
assert str(element) == '<div id="wow" data-magic="yes"><b>FUN!</b>Magic!</div>'
231231
```
232232

233-
The `html()` template processing code sees that `{Magic}` is an interpolation, that it occurs in the tag position, and that its value is a `Callable`. As a result, `html()` calls `Magic()` with the interpolated children and attributes and uses the result returned _by_ `Magic()` as the final `Element`.
233+
The `html()` template processing code sees that `{Magic}` is an interpolation, that it occurs in the tag position, and that its value is a `Callable`. As a result, `html()` calls `Magic()` with the interpolated children and attributes and uses the result returned _by_ `Magic()` as the final `Element`.

0 commit comments

Comments
 (0)