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

[Git][ftp-team/dak][master] match_architecture(): use == for string comparison



Title: GitLab

Ansgar pushed to branch master at Debian FTP Team / dak

Commits:

1 changed file:

Changes:

  • daklib/architecture.py
    ... ... @@ -110,7 +110,7 @@ def match_architecture(arch, wildcard):
    110 110
         # 'all' has no valid tuple
    
    111 111
         if arch == 'all' or wildcard == 'all':
    
    112 112
             return arch == wildcard
    
    113
    -    if wildcard is 'any' or arch == wildcard:
    
    113
    +    if wildcard == 'any' or arch == wildcard:
    
    114 114
             return True
    
    115 115
     
    
    116 116
         tuple_arch = Debian_arch_to_Debian_tuple(arch)
    


  • Reply to: