mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 23:10:17 +00:00
typo
This commit is contained in:
+1
-1
@@ -297,7 +297,7 @@ rules = []
|
||||
|
||||
<p class=d>[<a href=examples/plural5.py>download <code>plural5.py</code></a>]
|
||||
<pre class='nd pp'><code>def rules(rules_filename):
|
||||
with open('plural5-rules.txt', encoding='utf-8') as pattern_file:
|
||||
with open(rules_filename, encoding='utf-8') as pattern_file:
|
||||
for line in pattern_file:
|
||||
pattern, search, replace = line.split(None, 3)
|
||||
yield build_match_and_apply_functions(pattern, search, replace)
|
||||
|
||||
Reference in New Issue
Block a user