Skip to content

Commit bf6d2eb

Browse files
authored
Merge pull request #12056 from augustogoulart/remove_with_metaclass
Remove unused with_metaclass function.
2 parents fc1ebb9 + 6a8e15d commit bf6d2eb

1 file changed

Lines changed: 0 additions & 27 deletions

File tree

‎IPython/utils/py3compat.py‎

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -189,30 +189,3 @@ def get_closure(f):
189189
PY2 = not PY3
190190
PYPY = platform.python_implementation() == "PyPy"
191191

192-
193-
194-
195-
# Parts below taken from six:
196-
# Copyright (c) 2010-2013 Benjamin Peterson
197-
#
198-
# Permission is hereby granted, free of charge, to any person obtaining a copy
199-
# of this software and associated documentation files (the "Software"), to deal
200-
# in the Software without restriction, including without limitation the rights
201-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
202-
# copies of the Software, and to permit persons to whom the Software is
203-
# furnished to do so, subject to the following conditions:
204-
#
205-
# The above copyright notice and this permission notice shall be included in all
206-
# copies or substantial portions of the Software.
207-
#
208-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
209-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
210-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
211-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
212-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
213-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
214-
# SOFTWARE.
215-
216-
def with_metaclass(meta, *bases):
217-
"""Create a base class with a metaclass."""
218-
return meta("_NewBase", bases, {})

0 commit comments

Comments
 (0)