Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14505 > unrolled thread

Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'

Started byNilesh Patra <nilesh@debian.org>
First post2022-10-01 12:00 +0200
Last post2022-10-01 12:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace' Nilesh Patra <nilesh@debian.org> - 2022-10-01 12:00 +0200

#14505 — Bug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'

FromNilesh Patra <nilesh@debian.org>
Date2022-10-01 12:00 +0200
SubjectBug#1020041: zope.testrunner: FTBFS: AttributeError: 're.Pattern' object has no attribute 'replace'
Message-ID<FbHia-bhQO-9@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

reassign -1 dh-python 5.20220924
stop

Hi,

On Sun, 18 Sep 2022 08:02:58 +0200 Lucas Nussbaum <lucas@debian.org> wrote:
> Source: zope.testrunner
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > dh_python3 --shebang=/usr/bin/python3 -X tests
> > I: dh_python3 tools:114: replacing shebang in debian/python3-zope.testrunner/usr/bin/zope-testrunner3
> > I: dh_python3 tools:114: replacing shebang in debian/python3-zope.testrunner/usr/bin/zope-testrunner
> > Traceback (most recent call last):
> >   File "/usr/bin/dh_python3", line 284, in <module>
> >     main()
> >   File "/usr/bin/dh_python3", line 214, in main
> >     dependencies.parse(stats, options)
> >   File "/usr/share/dh-python/dhpython/depends.py", line 228, in parse
> >     args += " -X '%s'" % pattern.replace("'", r"'\''")
> > AttributeError: 're.Pattern' object has no attribute 'replace'
> > make[1]: *** [debian/rules:20: override_dh_python3] Error 1

This looks like a bug with dh-python itself. Maybe this needs to be "sub" instead of "replace", similar
string regex replaces at a couple more places.

Please let me know if I made a mistake here and this is not a bug in dh-python.

-- 
Best,
Nilesh

[toc] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web