Commit Graph

6 Commits

Author SHA1 Message Date
Boris Verkhovskiy
0aceb41100 [python/*] remove feedback email request 2024-04-07 03:54:02 -07:00
Boris Verkhovskiy
3e687f1a8c Remove leading and trailing empty lines in code blocks 2024-04-06 08:33:50 -07:00
Simon Shine
887cbee8af Change 'filename:' for Python 2 (legacy)
Before renaming, all Python 2 filenames were 'learnpython-*.py'.

This commit renames them to 'learnpythonlegacy-*.py'.

To verify that the filenames were named consistently across
translations prior to this commit, and to change this:

```
find . -name "pythonlegacy*.markdown" -exec ack filename: {} \;

find . -name "pythonlegacy*.markdown" -exec \
  sed -i 's/^filename: learnpython/filename: learnpythonlegacy/' {} \;
```
2020-02-12 07:04:42 +01:00
Simon Shine
95c8b24ebf Python 2 'language': Python 2 (legacy)
Instead of listing 'language: python' for Python 2, use

    language: Python 2 (legacy)

```
find . -iname "*pythonlegacy*" -exec \
  sed -i 's/^language: .*/language: Python 2 (legacy)/' {} \;
```
2020-02-12 05:09:13 +01:00
Simon Shine
efe00fd06e Switch links: 'python3 <-> python' and 'python <-> pythonlegacy'
The list of references is exhausted by running 'ack docs/python'.
2020-02-12 05:03:08 +01:00
Simon Shine
1adab9bc3f Rename Python 2 markdown files into 'pythonlegacy'
```
for f in $(find . -iname "*python*" | grep -vE 'python3|git|statcomp'); do
  flegacy=$(echo "$f" | sed 's/python/pythonlegacy/')
  git mv "$f" "$flegacy"
done
```
2020-02-12 04:53:08 +01:00