Skip to content

Commit

Permalink
breakpoint() for python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-mangin committed Jun 9, 2024
1 parent 773340e commit 5cab9de
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/exabgp/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
from vyos.util import call
from vyos.util import popen

if sys.version_info[:3] < (3,7):
def breakpoint():
import pdb;
pdb.set_trace()
pass

def _nop(config, path):
order = path[0]
Expand Down
6 changes: 6 additions & 0 deletions src/exabgp/conf/yang/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
from exabgp.conf.yang.datatypes import kw
from exabgp.conf.yang.datatypes import ranges

import sys
if sys.version_info[:3] < (3,7):
def breakpoint():
import pdb;
pdb.set_trace()
pass

class Code(object):
def __init__(self, tree):
Expand Down
6 changes: 6 additions & 0 deletions src/exabgp/conf/yang/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
from exabgp.conf.yang.datatypes import words
from exabgp.conf.yang.datatypes import types

import sys
if sys.version_info[:3] < (3,7):
def breakpoint():
import pdb;
pdb.set_trace()
pass

DEBUG = True

Expand Down

0 comments on commit 5cab9de

Please sign in to comment.