summaryrefslogtreecommitdiff
path: root/scalarbool.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-03-09 09:02:50 +0100
committerAnthon van der Neut <anthon@mnt.org>2021-03-09 09:02:50 +0100
commite73562c6f14d1d71a9fea174d58465e1b13f68af (patch)
tree309851cca7d411b31c27753555871d493282c7f0 /scalarbool.py
parent96839d9f64f4698bdc519cbfbd48d51178460714 (diff)
downloadruamel.yaml-e73562c6f14d1d71a9fea174d58465e1b13f68af.tar.gz
remove python 2 specific code
add future deprecation warning to old style functions
Diffstat (limited to 'scalarbool.py')
-rw-r--r--scalarbool.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/scalarbool.py b/scalarbool.py
index fc8f8c2..3862464 100644
--- a/scalarbool.py
+++ b/scalarbool.py
@@ -1,7 +1,5 @@
# coding: utf-8
-from __future__ import print_function, absolute_import, division, unicode_literals
-
"""
You cannot subclass bool, and this is necessary for round-tripping anchored
bool values (and also if you want to preserve the original way of writing)
@@ -18,8 +16,6 @@ if False: # MYPY
__all__ = ['ScalarBoolean']
-# no need for no_limit_int -> int
-
class ScalarBoolean(int):
def __new__(cls, *args, **kw):