@@ -3621,16 +3621,16 @@ features:
36213621
36223622   This example displays the number of bytes taken by non-directory files in each
36233623   directory under the starting directory, except that it doesn't look under any
3624-    CVS  subdirectory::
3624+    `` __pycache__ ``  subdirectory::
36253625
36263626      import os 
36273627      from os.path import join, getsize 
3628-       for root, dirs, files in os.walk('python/Lib/email '): 
3628+       for root, dirs, files in os.walk('python/Lib/xml '): 
36293629          print(root, "consumes", end=" ") 
36303630          print(sum(getsize(join(root, name)) for name in files), end=" ") 
36313631          print("bytes in", len(files), "non-directory files") 
3632-           if 'CVS ' in dirs: 
3633-               dirs.remove('CVS ')  # don't visit CVS  directories 
3632+           if '__pycache__ ' in dirs: 
3633+               dirs.remove('__pycache__ ')  # don't visit __pycache__  directories 
36343634
36353635   In the next example (simple implementation of :func: `shutil.rmtree `),
36363636   walking the tree bottom-up is essential, :func: `rmdir ` doesn't allow
@@ -3683,16 +3683,16 @@ features:
36833683
36843684   This example displays the number of bytes taken by non-directory files in each
36853685   directory under the starting directory, except that it doesn't look under any
3686-    CVS  subdirectory::
3686+    `` __pycache__ ``  subdirectory::
36873687
36883688      import os 
3689-       for root, dirs, files, rootfd in os.fwalk('python/Lib/email '): 
3689+       for root, dirs, files, rootfd in os.fwalk('python/Lib/xml '): 
36903690          print(root, "consumes", end="") 
36913691          print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), 
36923692                end="") 
36933693          print("bytes in", len(files), "non-directory files") 
3694-           if 'CVS ' in dirs: 
3695-               dirs.remove('CVS ')  # don't visit CVS  directories 
3694+           if '__pycache__ ' in dirs: 
3695+               dirs.remove('__pycache__ ')  # don't visit __pycache__  directories 
36963696
36973697   In the next example, walking the tree bottom-up is essential:
36983698   :func: `rmdir ` doesn't allow deleting a directory before the directory is
0 commit comments