From dfaa0e47710d643e8e4f32fa1baa39790c64b631 Mon Sep 17 00:00:00 2001 From: Luciano Ramalho Date: Tue, 8 Jun 2021 14:06:38 -0300 Subject: [PATCH] lispy.py: removed redundant object base class --- py/lispy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/lispy.py b/py/lispy.py index cd175f5..b17341c 100644 --- a/py/lispy.py +++ b/py/lispy.py @@ -19,7 +19,7 @@ _quote, _if, _set, _define, _lambda, _begin, _definemacro, = map(Sym, _quasiquote, _unquote, _unquotesplicing = map(Sym, "quasiquote unquote unquote-splicing".split()) -class Procedure(object): +class Procedure: "A user-defined Scheme procedure." def __init__(self, parms, exp, env): self.parms, self.exp, self.env = parms, exp, env @@ -36,7 +36,7 @@ def parse(inport): eof_object = Symbol('#') # Note: uninterned; can't be read -class InPort(object): +class InPort: "An input port. Retains a line of chars." tokenizer = r"""\s*(,@|[('`,)]|"(?:[\\].|[^\\"])*"|;.*|[^\s('"`,;)]*)(.*)""" def __init__(self, file):