Skip to content

Commit a338d4f

Browse files
Clean up
1 parent 1c8fde0 commit a338d4f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ getopt
744744
glob
745745
----
746746

747-
* Add ``~`` expansion to user's home directory.
747+
* Add *expand_tilde* option to :func:`~glob.glob`.
748748
(Contributed by Stan Ulbrych in :gh:`132757`.)
749749

750750

Lib/glob.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,9 +553,3 @@ def scandir(path):
553553
@staticmethod
554554
def concat_path(path, text):
555555
return path.with_segments(str(path) + text)
556-
557-
if __name__ == '__main__':
558-
from pathlib import Path
559-
print('os:', os.path.expanduser('~'))
560-
print('pathlib:', Path.home())
561-
assert str(os.path.expanduser('~')) == str(Path.home())

0 commit comments

Comments
 (0)