All of lore.kernel.org
 help / color / mirror / Atom feed
* Warnings when starting bitbake with Python 3.8.0
@ 2019-11-15 12:58 Paul Barker
  2019-11-15 16:21 ` Christopher Larson
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Barker @ 2019-11-15 12:58 UTC (permalink / raw)
  To: bitbake-devel

I'm using Arch on one of my dev machines and recent upgrades have brought in Python 3.8.0.

When running bitbake (latest master, 33197db8abf82be240d7c1c5c9d2484a08a90849) I'm seeing the following warnings. This only happens on the first invocation as __pycache__ is used after this.

    /.../bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is" with a literal. Did you mean "=="?
      if command is 'mkview':
    /.../bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is" with a literal. Did you mean "=="?
      elif command is 'rmview':
    /.../bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is" with a literal. Did you mean "=="?
      elif command is 'setcs':

I've never used the clearcase fetcher and have no way of testing this myself so I don't want to dive into it. May be worth someone who is using this taking a look at it though.

Thanks,

-- 
Paul Barker


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warnings when starting bitbake with Python 3.8.0
  2019-11-15 12:58 Warnings when starting bitbake with Python 3.8.0 Paul Barker
@ 2019-11-15 16:21 ` Christopher Larson
  2019-11-15 17:26   ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Larson @ 2019-11-15 16:21 UTC (permalink / raw)
  To: bitbake-devel, Paul Barker

[-- Attachment #1: Type: text/plain, Size: 1227 bytes --]

That’s definitely a bug, incorrect usage of `is`.
On Nov 15, 2019, 6:06 AM -0700, Paul Barker <paul@betafive.co.uk>, wrote:
> I'm using Arch on one of my dev machines and recent upgrades have brought in Python 3.8.0.
>
> When running bitbake (latest master, 33197db8abf82be240d7c1c5c9d2484a08a90849) I'm seeing the following warnings. This only happens on the first invocation as __pycache__ is used after this.
>
> /.../bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is" with a literal. Did you mean "=="?
> if command is 'mkview':
> /.../bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is" with a literal. Did you mean "=="?
> elif command is 'rmview':
> /.../bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is" with a literal. Did you mean "=="?
> elif command is 'setcs':
>
> I've never used the clearcase fetcher and have no way of testing this myself so I don't want to dive into it. May be worth someone who is using this taking a look at it though.
>
> Thanks,
>
> --
> Paul Barker
> --
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel

[-- Attachment #2: Type: text/html, Size: 1675 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warnings when starting bitbake with Python 3.8.0
  2019-11-15 16:21 ` Christopher Larson
@ 2019-11-15 17:26   ` Khem Raj
  2019-11-15 18:08     ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2019-11-15 17:26 UTC (permalink / raw)
  To: Christopher Larson, bitbake-devel, Paul Barker

On Fri, 2019-11-15 at 09:21 -0700, Christopher Larson wrote:
> That’s definitely a bug, incorrect usage of `is`.
> On Nov 15, 2019, 6:06 AM -0700, Paul Barker <paul@betafive.co.uk>,
> wrote:
> > I'm using Arch on one of my dev machines and recent upgrades have
> > brought in Python 3.8.0.
> > 
> > When running bitbake (latest master,
> > 33197db8abf82be240d7c1c5c9d2484a08a90849) I'm seeing the following
> > warnings. This only happens on the first invocation as __pycache__
> > is used after this.
> > 
> > /.../bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is"
> > with a literal. Did you mean "=="?
> > if command is 'mkview':
> > /.../bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is"
> > with a literal. Did you mean "=="?
> > elif command is 'rmview':
> > /.../bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is"
> > with a literal. Did you mean "=="?
> > elif command is 'setcs':
> > 
> > I've never used the clearcase fetcher and have no way of testing
> > this myself so I don't want to dive into it. May be worth someone
> > who is using this taking a look at it though.
> > 

Yes, this was latent, either a patch or bug will be good to have

> > Thanks,
> > 
> > --
> > Paul Barker
> > --
> > _______________________________________________
> > bitbake-devel mailing list
> > bitbake-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/bitbake-devel



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warnings when starting bitbake with Python 3.8.0
  2019-11-15 17:26   ` Khem Raj
@ 2019-11-15 18:08     ` Richard Purdie
  2019-11-15 18:09       ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2019-11-15 18:08 UTC (permalink / raw)
  To: Khem Raj, Christopher Larson, bitbake-devel, Paul Barker

On Fri, 2019-11-15 at 09:26 -0800, Khem Raj wrote:
> On Fri, 2019-11-15 at 09:21 -0700, Christopher Larson wrote:
> > That’s definitely a bug, incorrect usage of `is`.
> > On Nov 15, 2019, 6:06 AM -0700, Paul Barker <paul@betafive.co.uk>,
> > wrote:
> > > I'm using Arch on one of my dev machines and recent upgrades have
> > > brought in Python 3.8.0.
> > > 
> > > When running bitbake (latest master,
> > > 33197db8abf82be240d7c1c5c9d2484a08a90849) I'm seeing the
> > > following
> > > warnings. This only happens on the first invocation as
> > > __pycache__
> > > is used after this.
> > > 
> > > /.../bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is"
> > > with a literal. Did you mean "=="?
> > > if command is 'mkview':
> > > /.../bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is"
> > > with a literal. Did you mean "=="?
> > > elif command is 'rmview':
> > > /.../bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is"
> > > with a literal. Did you mean "=="?
> > > elif command is 'setcs':
> > > 
> > > I've never used the clearcase fetcher and have no way of testing
> > > this myself so I don't want to dive into it. May be worth someone
> > > who is using this taking a look at it though.
> > > 
> 
> Yes, this was latent, either a patch or bug will be good to have

Rather than see more emails and bugs on this I sent a patch...

Cheers,

Richard



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Warnings when starting bitbake with Python 3.8.0
  2019-11-15 18:08     ` Richard Purdie
@ 2019-11-15 18:09       ` Khem Raj
  0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2019-11-15 18:09 UTC (permalink / raw)
  To: Richard Purdie; +Cc: bitbake-devel

On Fri, Nov 15, 2019 at 10:08 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Fri, 2019-11-15 at 09:26 -0800, Khem Raj wrote:
> > On Fri, 2019-11-15 at 09:21 -0700, Christopher Larson wrote:
> > > That’s definitely a bug, incorrect usage of `is`.
> > > On Nov 15, 2019, 6:06 AM -0700, Paul Barker <paul@betafive.co.uk>,
> > > wrote:
> > > > I'm using Arch on one of my dev machines and recent upgrades have
> > > > brought in Python 3.8.0.
> > > >
> > > > When running bitbake (latest master,
> > > > 33197db8abf82be240d7c1c5c9d2484a08a90849) I'm seeing the
> > > > following
> > > > warnings. This only happens on the first invocation as
> > > > __pycache__
> > > > is used after this.
> > > >
> > > > /.../bitbake/lib/bb/fetch2/clearcase.py:148: SyntaxWarning: "is"
> > > > with a literal. Did you mean "=="?
> > > > if command is 'mkview':
> > > > /.../bitbake/lib/bb/fetch2/clearcase.py:155: SyntaxWarning: "is"
> > > > with a literal. Did you mean "=="?
> > > > elif command is 'rmview':
> > > > /.../bitbake/lib/bb/fetch2/clearcase.py:159: SyntaxWarning: "is"
> > > > with a literal. Did you mean "=="?
> > > > elif command is 'setcs':
> > > >
> > > > I've never used the clearcase fetcher and have no way of testing
> > > > this myself so I don't want to dive into it. May be worth someone
> > > > who is using this taking a look at it though.
> > > >
> >
> > Yes, this was latent, either a patch or bug will be good to have
>
> Rather than see more emails and bugs on this I sent a patch...
>

superb. Arch users will send positive vibes to you :)

> Cheers,
>
> Richard
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-11-15 18:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 12:58 Warnings when starting bitbake with Python 3.8.0 Paul Barker
2019-11-15 16:21 ` Christopher Larson
2019-11-15 17:26   ` Khem Raj
2019-11-15 18:08     ` Richard Purdie
2019-11-15 18:09       ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.