New submission from Anton G. <anton.grue...@googlemail.com>:
When I did some work on typeshed I found some weird syntax in pipes.py. if type(cmd) is not type(''): which can easily be changed to if not isinstance(cmd, str): There are two occurrences and I will directly create the PR :) ---------- components: Library (Lib) messages: 397995 nosy: anton.gruebel priority: normal severity: normal status: open title: Optimize type check in pipes.py type: performance _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44711> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com