@@ -3693,16 +3693,16 @@ features:
36933693
36943694   This example displays the number of bytes taken by non-directory files in each
36953695   directory under the starting directory, except that it doesn't look under any
3696-    CVS  subdirectory::
3696+    `` __pycache__ ``  subdirectory::
36973697
36983698      import os 
36993699      from os.path import join, getsize 
3700-       for root, dirs, files in os.walk('python/Lib/email '): 
3700+       for root, dirs, files in os.walk('python/Lib/xml '): 
37013701          print(root, "consumes", end=" ") 
37023702          print(sum(getsize(join(root, name)) for name in files), end=" ") 
37033703          print("bytes in", len(files), "non-directory files") 
3704-           if 'CVS ' in dirs: 
3705-               dirs.remove('CVS ')  # don't visit CVS  directories 
3704+           if '__pycache__ ' in dirs: 
3705+               dirs.remove('__pycache__ ')  # don't visit __pycache__  directories 
37063706
37073707   In the next example (simple implementation of :func: `shutil.rmtree `),
37083708   walking the tree bottom-up is essential, :func: `rmdir ` doesn't allow
@@ -3755,16 +3755,16 @@ features:
37553755
37563756   This example displays the number of bytes taken by non-directory files in each
37573757   directory under the starting directory, except that it doesn't look under any
3758-    CVS  subdirectory::
3758+    `` __pycache__ ``  subdirectory::
37593759
37603760      import os 
3761-       for root, dirs, files, rootfd in os.fwalk('python/Lib/email '): 
3761+       for root, dirs, files, rootfd in os.fwalk('python/Lib/xml '): 
37623762          print(root, "consumes", end="") 
37633763          print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]), 
37643764                end="") 
37653765          print("bytes in", len(files), "non-directory files") 
3766-           if 'CVS ' in dirs: 
3767-               dirs.remove('CVS ')  # don't visit CVS  directories 
3766+           if '__pycache__ ' in dirs: 
3767+               dirs.remove('__pycache__ ')  # don't visit __pycache__  directories 
37683768
37693769   In the next example, walking the tree bottom-up is essential:
37703770   :func: `rmdir ` doesn't allow deleting a directory before the directory is
0 commit comments