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


Groups > linux.debian.maint.python > #12156

Re: Help needed (Was: Bug#943083: libncl: Python2 removal in sid/bullseye)

From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Help needed (Was: Bug#943083: libncl: Python2 removal in sid/bullseye)
Date 2019-12-16 11:10 +0100
Message-ID <zdVua-2KO-13@gated-at.bofh.it> (permalink)
References <zdTLH-1Ej-5@gated-at.bofh.it> <zdTLH-1Ej-3@gated-at.bofh.it> <zdU53-1KK-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On Mon, Dec 16, 2019 at 01:31:02PM +0500, Andrey Rahmatullin wrote:
> On Mon, Dec 16, 2019 at 09:17:50AM +0100, Andreas Tille wrote:
> >     inputParentPath = lineIter.next().strip()
> > AttributeError: '_io.StringIO' object has no attribute 'next'
> This should be changed to next(lineIter).strip(), 2to3 for some reason
> missed it.

I'm afraid 2to3 skipped this very file.  I retried manually:

$ 2to3 -w roundTripNCLTest.py 
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Can't parse roundTripNCLTest.py: ParseError: bad input: type=22, value='=', context=('', (41, 93))
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't parse roundTripNCLTest.py: ParseError: bad input: type=22, value='=', context=('', (41, 93))


I also had to replace a call to file() by open() - now it works.

Is this by any chance a bug in 2to3?

Kind regards

        Andreas.

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#943083: Help needed (Was: Bug#943083: libncl: Python2 removal in sid/bullseye) Andreas Tille <andreas@an3as.eu> - 2019-12-16 09:30 +0100
  Bug#943083: Help needed (Was: Bug#943083: libncl: Python2 removal in sid/bullseye) Andrey Rahmatullin <wrar@debian.org> - 2019-12-16 09:40 +0100
    Re: Help needed (Was: Bug#943083: libncl: Python2 removal in  sid/bullseye) Andreas Tille <andreas@an3as.eu> - 2019-12-16 11:10 +0100
      Re: Help needed (Was: Bug#943083: libncl: Python2 removal in  sid/bullseye) Andrey Rahmatullin <wrar@debian.org> - 2019-12-16 11:20 +0100

csiph-web