Skip to content

Commit

Permalink
drop pre-3.8 code
Browse files Browse the repository at this point in the history
  • Loading branch information
bretello committed Oct 29, 2023
1 parent 129036a commit f73253d
Show file tree
Hide file tree
Showing 7 changed files with 350 additions and 514 deletions.
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,15 @@ pdb++.
by default, it breaks every time the attribute is set. E.g.::

@break_on_setattr('bar')
class Foo(object):
class Foo:
pass
f = Foo()
f.bar = 42 # the program breaks here

If can be used even after the class has already been created, e.g. if we
want to break when some attribute of a particular object is set::

class Foo(object):
class Foo:
pass
a = Foo()
b = Foo()
Expand Down
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,9 @@
"fancycompleter @ git+https://github.com/pdbpp/fancycompleter@master#egg=fancycompleter", # noqa: E501
"wmctrl",
"pygments",
"six",
],
extras_require={
"funcsigs": ["funcsigs"],
"testing": [
"funcsigs",
"pytest",
],
},
Expand Down
4 changes: 2 additions & 2 deletions src/_pdbpp_path_hack/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import os
import sys

pdb_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'pdbpp.py')
pdb_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), "pdbpp.py")

# Set __file__ to exec'd code. This is good in general, and required for
# coverage.py to use it.
__file__ = pdb_path

with open(pdb_path) as f:
exec(compile(f.read(), pdb_path, 'exec'))
exec(compile(f.read(), pdb_path, "exec"))

# Update/set __file__ attribute to actually sourced file, but not when not coming
# here via "-m pdb", where __name__ is "__main__".
Expand Down
Loading

0 comments on commit f73253d

Please sign in to comment.