Skip to content

Commit b6cffc7

Browse files
committed
ref: refactor directory
1 parent ffc0fa8 commit b6cffc7

7 files changed

Lines changed: 11 additions & 88 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ __pycache__/
55
package-lock.json
66
node_modules/
77
dist/
8+
/readme_sync/

GETREADME/README_S.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

GETREADME/README_zh_cn_S.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

GETREADME/sync_readme.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

README-zh-cn.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -726,11 +726,11 @@ True
726726
>>> import pathlib
727727
>>> p = pathlib.Path(".")
728728
>>> list(p.glob('**/*.py'))
729-
[WindowsPath('GETREADME.py'), WindowsPath('test.py')]
729+
[WindowsPath('readme_snatcher.py'), WindowsPath('test.py')]
730730
>>> p/"dir" # use / to get further path
731731
WindowsPath('dir')
732-
>>> (p/"GETREADME.py").name
733-
'GETREADME.py'
732+
>>> (p/"readme_snatcher.py").name
733+
'readme_snatcher.py'
734734
>>> p.is_absolute()
735735
False
736736
```
@@ -843,7 +843,7 @@ examples/cmp1.txt | Line Number: 5 |: 5
843843

844844
```python
845845
>>> import linecache
846-
>>> linecache.getline("examples/GETREADME.py", 1) # start from one, not zero
846+
>>> linecache.getline("examples/readme_snatcher.py", 1) # start from one, not zero
847847
'from sys import exit\n'
848848
```
849849

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@ Depend on Python v3.9.8
44

55
All code snippets have been tested to ensure they work properly.
66

7-
Fork me on [GitHub](https://github.com/pynickle/python-cheatsheet).
7+
Fork me on [GitHub](https://github.com/pynickle/python-cheatsheet-redefined).
88

99
- [中文](README-zh-cn.md)
1010
- [English](README.md)
1111

1212
**Notes**:
1313

1414
- **Every code snippet here can run independently (some need the files provided by this repo)**
15-
- **You can get a version of the page with switchable code themes and languages from the flask project in the web folder**
16-
- **You can use GETREADME.py to download README.md from the repository (Chinese or English, with or not with command line prefixes is up to you!)**
15+
- **You can use readme_snatcher.py to download README.md from the repository (Chinese or English, with or not with command line prefixes is up to you!)**
1716

1817
## Contents
1918

@@ -727,11 +726,11 @@ True
727726
>>> import pathlib
728727
>>> p = pathlib.Path(".")
729728
>>> list(p.glob('**/*.py'))
730-
[WindowsPath('GETREADME.py'), WindowsPath('test.py')]
729+
[WindowsPath('readme_snatcher.py'), WindowsPath('test.py')]
731730
>>> p/"dir" # use / to get further path
732731
WindowsPath('dir')
733-
>>> (p/"GETREADME.py").name
734-
'GETREADME.py'
732+
>>> (p/"readme_snatcher.py").name
733+
'readme_snatcher.py'
735734
>>> p.is_absolute()
736735
False
737736
```
@@ -844,7 +843,7 @@ examples/cmp1.txt | Line Number: 5 |: 5
844843

845844
```python
846845
>>> import linecache
847-
>>> linecache.getline("examples/GETREADME.py", 1) # start from one, not zero
846+
>>> linecache.getline("examples/readme_snatcher.py", 1) # start from one, not zero
848847
'from sys import exit\n'
849848
```
850849

0 commit comments

Comments
 (0)