bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnulib-tool.py: Remove some unused variables.


From: Collin Funk
Subject: gnulib-tool.py: Remove some unused variables.
Date: Sun, 14 Apr 2024 09:42:17 -0700
User-agent: Mozilla Thunderbird

There are a few cases of statements like this:

      var = None
      try:
          # do something
          var = True
       except:
          var = False
or:

     var = None
     if other_condition:
         var = True
     else:
         var = False

Since the 'var' will be set to a bool unconditionally, the None is
never used.

Collin

Attachment: 0001-gnulib-tool.py-Remove-some-unused-variables.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]