summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-20 19:29:24 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-20 19:29:24 (GMT)
commitc1e315d2b0df6d647d19a0cd25d6a4b964db1eb2 (patch)
treea896c4313a1e1013b79016683d72b308b4e215de /Lib/test
parentd06489945f74b0c437e2a5d5dbb64e9bcbcb1ff0 (diff)
downloadcpython-c1e315d2b0df6d647d19a0cd25d6a4b964db1eb2.zip
cpython-c1e315d2b0df6d647d19a0cd25d6a4b964db1eb2.tar.gz
cpython-c1e315d2b0df6d647d19a0cd25d6a4b964db1eb2.tar.bz2
Rename __whatever variables defined by ABCMeta to _abc_whatever, so as
to simplify legitimate use of these.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 0c7ef7c..d26d618 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -680,7 +680,7 @@ def dash_R(the_module, test, indirect_test, huntrleaks):
fs = warnings.filters[:]
ps = copy_reg.dispatch_table.copy()
pic = sys.path_importer_cache.copy()
- abcs = {obj: obj._ABCMeta__registry.copy()
+ abcs = {obj: obj._abc_registry.copy()
for abc in [getattr(_abcoll, a) for a in _abcoll.__all__]
for obj in abc.__subclasses__() + [abc]}
@@ -731,9 +731,9 @@ def dash_R_cleanup(fs, ps, pic, abcs):
# Clear ABC registries, restoring previously saved ABC registries.
for abc in [getattr(_abcoll, a) for a in _abcoll.__all__]:
for obj in abc.__subclasses__() + [abc]:
- obj._ABCMeta__registry = abcs.get(obj, {}).copy()
- obj._ABCMeta__cache.clear()
- obj._ABCMeta__negative_cache.clear()
+ obj._abc_registry = abcs.get(obj, {}).copy()
+ obj._abc_cache.clear()
+ obj._abc_negative_cache.clear()
# Clear assorted module caches.
_path_created.clear()