doc: more renaming
This commit is contained in:
parent
1eeb48b115
commit
2695a5a15b
1 changed files with 28 additions and 28 deletions
|
|
@ -309,7 +309,7 @@ returned.
|
|||
example
|
||||
-------
|
||||
|
||||
Imagine that you want to replace all occurrences of "sàt" by "Salut à Toi" in your personal blog. You first create a Python script like this:
|
||||
Imagine that you want to replace all occurrences of "sàt" by "Libervia" in your personal blog. You first create a Python script like this:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
|
|
@ -320,7 +320,7 @@ Imagine that you want to replace all occurrences of "sàt" by "Salut à Toi" in
|
|||
if not "sàt" in item_raw:
|
||||
print("SKIP")
|
||||
else:
|
||||
print(item_raw.replace("sàt", "Salut à Toi"))
|
||||
print(item_raw.replace("sàt", "Libervia"))
|
||||
|
||||
And save it a some location, e.g. ``~/expand_sat.py`` (don't forget to make is executable
|
||||
with ``chmod +x ~/expand_sat.py``).
|
||||
|
|
|
|||
Loading…
Reference in a new issue