Use Python3-style class declaration
authorMaxim Belkin <maxim.belkin@gmail.com>
Tue, 22 May 2018 13:23:43 +0000 (08:23 -0500)
committerMaxim Belkin <maxim.belkin@gmail.com>
Tue, 22 May 2018 13:23:43 +0000 (08:23 -0500)
bin/lesson_check.py
bin/util.py

index d179db519bd399bc2a0ddd42d193edb31e05b54d..5d8b9ddc7cadd7a8afd4100b4d3ca6da8ada20d9 100755 (executable)
@@ -273,7 +273,7 @@ def create_checker(args, filename, info):
             return cls(args, filename, **info)
     return NotImplemented
 
-class CheckBase(object):
+class CheckBase:
     """Base class for checking Markdown files."""
 
     def __init__(self, args, filename, metadata, metadata_len, text, lines, doc):
index 5bc7e9ba8418187b74f9fe452e5ce7aca7fc88bd..79cc0108212230ac748b9d608b8bb6e3e8530823 100644 (file)
@@ -30,7 +30,7 @@ UNWANTED_FILES = [
 REPORTER_NOT_SET = []
 
 
-class Reporter(object):
+class Reporter:
     """Collect and report errors."""
 
     def __init__(self):