Skip to content

Commit b4b91f4

Browse files
Update factory_method.py
as the 'language' argument is a keyword argument in the function definition, for the sake of completeness should also be called with keyword arguments.
1 parent 70aaea7 commit b4b91f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

factory_method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_localizer(language="English"):
3333
return languages[language]()
3434

3535
# Create our localizers
36-
e, g = get_localizer("English"), get_localizer("Greek")
36+
e, g = get_localizer(language="English"), get_localizer(language="Greek")
3737
# Localize some text
3838
for msgid in "dog parrot cat bear".split():
3939
print(e.get(msgid), g.get(msgid))

0 commit comments

Comments
 (0)