Skip to content

Commit 87823f4

Browse files
committed
Misc lint
1 parent 7f01455 commit 87823f4

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

trepan/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (C) 2008-2009, 2013, 2015, 2021 Rocky Bernstein <rocky@gnu.org>
2+
# Copyright (C) 2008-2009, 2013, 2015, 2021-2022 Rocky Bernstein <rocky@gnu.org>
33
# This program is free software: you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation, either version 3 of the License, or
@@ -164,11 +164,13 @@
164164
* more testable. Much more unit and functional tests. More of _pydb_'s
165165
integration test will eventually be added.
166166
167-
Copyright (C) 2008-2009, 2013-2016, 2021 Rocky Bernstein <rocky@gnu.org>
167+
Copyright (C) 2008-2009, 2013-2016, 2021-2022 Rocky Bernstein <rocky@gnu.org>
168168
169169
.. |Downloads| image:: https://pypip.in/download/trepan/badge.svg
170170
.. |Build Status| image:: https://travis-ci.org/rocky/python3-trepan.svg
171171
"""
172172
__docformat__ = "restructuredtext"
173173

174174
from trepan.version import __version__
175+
176+
__all__ = ["__version__"]

trepan/lib/deparse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import sys, tempfile
55
from io import StringIO
66
from hashlib import sha1
7-
from xdis import PYTHON_VERSION
7+
from xdis import PYTHON_VERSION_TRIPLE
88

9-
if 3.7 <= PYTHON_VERSION <= 3.8:
9+
if (3, 7) <= PYTHON_VERSION_TRIPLE < (3, 9):
1010
try:
1111
from decompyle3.semantics.linemap import code_deparse_with_map
1212
from decompyle3.semantics.fragments import deparsed_find, code_deparse

0 commit comments

Comments
 (0)