summaryrefslogtreecommitdiffstats
path: root/PC/VS8.0/rmpyc.py
diff options
context:
space:
mode:
authorBrian Curtin <brian@python.org>2013-01-25 23:11:34 (GMT)
committerBrian Curtin <brian@python.org>2013-01-25 23:11:34 (GMT)
commit591c4282d70a8aaebe9823ee5b74c27707e9d40d (patch)
tree6e90e4f7c4a732af50fe7337dafc88bb166c1fd4 /PC/VS8.0/rmpyc.py
parent570c5b235451412ac55ce211813358b50d0e070b (diff)
downloadcpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.zip
cpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.tar.gz
cpython-591c4282d70a8aaebe9823ee5b74c27707e9d40d.tar.bz2
Fix #16769. Remove outdated Visual Studio project directories for VC6, VS7.1, and VS8.
Diffstat (limited to 'PC/VS8.0/rmpyc.py')
-rw-r--r--PC/VS8.0/rmpyc.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/PC/VS8.0/rmpyc.py b/PC/VS8.0/rmpyc.py
deleted file mode 100644
index 18e1705..0000000
--- a/PC/VS8.0/rmpyc.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# Remove all the .pyc and .pyo files under ../Lib.
-
-
-def deltree(root):
- import os
- from os.path import join
-
- npyc = npyo = 0
- for root, dirs, files in os.walk(root):
- for name in files:
- delete = False
- if name.endswith('.pyc'):
- delete = True
- npyc += 1
- elif name.endswith('.pyo'):
- delete = True
- npyo += 1
-
- if delete:
- os.remove(join(root, name))
-
- return npyc, npyo
-
-npyc, npyo = deltree("../../Lib")
-print(npyc, ".pyc deleted,", npyo, ".pyo deleted")