Package: pydb
Version: 1.01-8.2
Followup-For: Bug #190662
Tags: patch
I've prepared a minimal patch for pydb.py that fixes this
bug from a version of this script found at
http://heather.cs.ucdavis.edu/~matloff/Python/pydb.py. I also prepared a
package for NMU, if someone wants to upload if to close this RC bug. The
package is at http://www.tagancha.org/sites/interests/linux/pydb/
Regards,
Alex.
--- pydb.py 2003-10-10 00:12:05.000000000 -0600
+++ pydb.py 2005-02-16 15:12:21.514213632 -0700
@@ -128,6 +128,7 @@
# Override Bdb (note number of args is different)
def set_break(self, filename, lineno, temporary=0):
+ filename = self.canonic(filename) # changed per RW
import linecache # Import as late as possible
line = linecache.getline(filename, lineno)
if not line:
@@ -143,6 +144,7 @@
# Override Bdb
def break_here(self, frame):
filename=frame.f_code.co_filename
+ filename = self.canonic(filename) # changed per RW
if not self.breaks.has_key(filename):
return 0
lineno=frame.f_lineno
@@ -326,7 +328,7 @@
for i in numberlist:
number = int(i)
bp = Breakpoint.bpbynumber[number]
- filename = bp.file
+ filename = self.canonic(bp.file) # added per RW
lineno = bp.line
if not self.breaks.has_key(filename):
return 'There are no breakpoints in that file!'
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-rc2-20041118-mrb319
Locale: LANG=uk_UA.KOI8-U, LC_CTYPE=en_US.ISO8859-15 (charmap=ISO-8859-15)
Versions of packages pydb depends on:
ii python 2.3.5-1 An interactive high-level object-o
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]