diff mbox series

bitbake: fix typos in string literals and comments

Message ID 20230818114755.3237201-1-Markus.Niebel@ew.tq-group.com
State New
Headers show
Series bitbake: fix typos in string literals and comments | expand

Commit Message

Markus Niebel Aug. 18, 2023, 11:47 a.m. UTC
Replace 'iff' with 'if'

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
---
 bitbake/lib/bs4/element.py | 4 ++--
 bitbake/lib/ply/yacc.py    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Alexander Kanavin Aug. 18, 2023, 11:50 a.m. UTC | #1
Thanks, this should be going to bitbake-devel list.

Alex

On Fri, 18 Aug 2023 at 13:48, Markus Niebel
<Markus.Niebel@ew.tq-group.com> wrote:
>
> Replace 'iff' with 'if'
>
> Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
> ---
>  bitbake/lib/bs4/element.py | 4 ++--
>  bitbake/lib/ply/yacc.py    | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/bitbake/lib/bs4/element.py b/bitbake/lib/bs4/element.py
> index 68be42d138..d59be6fa85 100644
> --- a/bitbake/lib/bs4/element.py
> +++ b/bitbake/lib/bs4/element.py
> @@ -1002,7 +1002,7 @@ class Tag(PageElement):
>              "'%s' object has no attribute '%s'" % (self.__class__, tag))
>
>      def __eq__(self, other):
> -        """Returns true iff this tag has the same name, the same attributes,
> +        """Returns true if this tag has the same name, the same attributes,
>          and the same contents (recursively) as the given tag."""
>          if self is other:
>              return True
> @@ -1019,7 +1019,7 @@ class Tag(PageElement):
>          return True
>
>      def __ne__(self, other):
> -        """Returns true iff this tag is not identical to the other tag,
> +        """Returns true if this tag is not identical to the other tag,
>          as defined in __eq__."""
>          return not self == other
>
> diff --git a/bitbake/lib/ply/yacc.py b/bitbake/lib/ply/yacc.py
> index 381b50cf0b..5863500571 100644
> --- a/bitbake/lib/ply/yacc.py
> +++ b/bitbake/lib/ply/yacc.py
> @@ -1536,9 +1536,9 @@ class Grammar(object):
>          while 1:
>              some_change = 0
>              for (n,pl) in self.Prodnames.items():
> -                # Nonterminal n terminates iff any of its productions terminates.
> +                # Nonterminal n terminates if any of its productions terminates.
>                  for p in pl:
> -                    # Production p terminates iff all of its rhs symbols terminate.
> +                    # Production p terminates if all of its rhs symbols terminate.
>                      for s in p.prod:
>                          if not terminates[s]:
>                              # The symbol s does not terminate,
> --
> 2.25.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#186362): https://lists.openembedded.org/g/openembedded-core/message/186362
> Mute This Topic: https://lists.openembedded.org/mt/100818700/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Alexander Kanavin Aug. 18, 2023, 11:51 a.m. UTC | #2
Oh wait, I forgot:

https://en.wikipedia.org/wiki/If_and_only_if

Alex

On Fri, 18 Aug 2023 at 13:50, Alexander Kanavin <alex.kanavin@gmail.com> wrote:
>
> Thanks, this should be going to bitbake-devel list.
>
> Alex
>
> On Fri, 18 Aug 2023 at 13:48, Markus Niebel
> <Markus.Niebel@ew.tq-group.com> wrote:
> >
> > Replace 'iff' with 'if'
> >
> > Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
> > ---
> >  bitbake/lib/bs4/element.py | 4 ++--
> >  bitbake/lib/ply/yacc.py    | 4 ++--
> >  2 files changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/bitbake/lib/bs4/element.py b/bitbake/lib/bs4/element.py
> > index 68be42d138..d59be6fa85 100644
> > --- a/bitbake/lib/bs4/element.py
> > +++ b/bitbake/lib/bs4/element.py
> > @@ -1002,7 +1002,7 @@ class Tag(PageElement):
> >              "'%s' object has no attribute '%s'" % (self.__class__, tag))
> >
> >      def __eq__(self, other):
> > -        """Returns true iff this tag has the same name, the same attributes,
> > +        """Returns true if this tag has the same name, the same attributes,
> >          and the same contents (recursively) as the given tag."""
> >          if self is other:
> >              return True
> > @@ -1019,7 +1019,7 @@ class Tag(PageElement):
> >          return True
> >
> >      def __ne__(self, other):
> > -        """Returns true iff this tag is not identical to the other tag,
> > +        """Returns true if this tag is not identical to the other tag,
> >          as defined in __eq__."""
> >          return not self == other
> >
> > diff --git a/bitbake/lib/ply/yacc.py b/bitbake/lib/ply/yacc.py
> > index 381b50cf0b..5863500571 100644
> > --- a/bitbake/lib/ply/yacc.py
> > +++ b/bitbake/lib/ply/yacc.py
> > @@ -1536,9 +1536,9 @@ class Grammar(object):
> >          while 1:
> >              some_change = 0
> >              for (n,pl) in self.Prodnames.items():
> > -                # Nonterminal n terminates iff any of its productions terminates.
> > +                # Nonterminal n terminates if any of its productions terminates.
> >                  for p in pl:
> > -                    # Production p terminates iff all of its rhs symbols terminate.
> > +                    # Production p terminates if all of its rhs symbols terminate.
> >                      for s in p.prod:
> >                          if not terminates[s]:
> >                              # The symbol s does not terminate,
> > --
> > 2.25.1
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#186362): https://lists.openembedded.org/g/openembedded-core/message/186362
> > Mute This Topic: https://lists.openembedded.org/mt/100818700/1686489
> > Group Owner: openembedded-core+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
diff mbox series

Patch

diff --git a/bitbake/lib/bs4/element.py b/bitbake/lib/bs4/element.py
index 68be42d138..d59be6fa85 100644
--- a/bitbake/lib/bs4/element.py
+++ b/bitbake/lib/bs4/element.py
@@ -1002,7 +1002,7 @@  class Tag(PageElement):
             "'%s' object has no attribute '%s'" % (self.__class__, tag))
 
     def __eq__(self, other):
-        """Returns true iff this tag has the same name, the same attributes,
+        """Returns true if this tag has the same name, the same attributes,
         and the same contents (recursively) as the given tag."""
         if self is other:
             return True
@@ -1019,7 +1019,7 @@  class Tag(PageElement):
         return True
 
     def __ne__(self, other):
-        """Returns true iff this tag is not identical to the other tag,
+        """Returns true if this tag is not identical to the other tag,
         as defined in __eq__."""
         return not self == other
 
diff --git a/bitbake/lib/ply/yacc.py b/bitbake/lib/ply/yacc.py
index 381b50cf0b..5863500571 100644
--- a/bitbake/lib/ply/yacc.py
+++ b/bitbake/lib/ply/yacc.py
@@ -1536,9 +1536,9 @@  class Grammar(object):
         while 1:
             some_change = 0
             for (n,pl) in self.Prodnames.items():
-                # Nonterminal n terminates iff any of its productions terminates.
+                # Nonterminal n terminates if any of its productions terminates.
                 for p in pl:
-                    # Production p terminates iff all of its rhs symbols terminate.
+                    # Production p terminates if all of its rhs symbols terminate.
                     for s in p.prod:
                         if not terminates[s]:
                             # The symbol s does not terminate,