diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:15:22 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-17 15:18:47 +1300 |
commit | 8360f70024330eeeb5c53d29e4a05194f872b511 (patch) | |
tree | 6bbdcfe54fcce1e41660ca07c9470f42debdec5b /netlib/basetypes.py | |
parent | 4918feb7252c76c95d85cd8b2b0334a22aaae274 (diff) | |
download | mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.tar.gz mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.tar.bz2 mitmproxy-8360f70024330eeeb5c53d29e4a05194f872b511.zip |
First-order conversion to Python3-only
- Zap various occurrences of Python2 in docs and scripts
- Remove six from netlib, and some other places where obvious project-wide
search and replace works.
Diffstat (limited to 'netlib/basetypes.py')
-rw-r--r-- | netlib/basetypes.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/netlib/basetypes.py b/netlib/basetypes.py index 9d6c60ba..49892ffc 100644 --- a/netlib/basetypes.py +++ b/netlib/basetypes.py @@ -1,9 +1,7 @@ -import six import abc -@six.add_metaclass(abc.ABCMeta) -class Serializable(object): +class Serializable(metaclass=abc.ABCMeta): """ Abstract Base Class that defines an API to save an object's state and restore it later on. """ |