Remove some more Python 3.5 references

This commit is contained in:
Dave Halter committed 2020-07-02 02:18:16 +02:00
1 parent 182e1e864c
commit 17343bb57c
9 files changed
+52 -95

No files matched your search

-12
View File
@@ -99,15 +99,3 @@ class PushBackIterator(object):
else:
self.current = next(self.iterator)
return self.current
@contextlib.contextmanager
def ignored(*exceptions):
"""
Value manager that ignores all of the specified exceptions. This will
be in the standard library starting with Python 3.5.
"""
try:
yield
except exceptions:
pass