Преглед изворни кода

Fix style check - call endswith() once with tuple

Carl Smedstad пре 1 недеља
родитељ
комит
0ddbf91e72
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/test_source.py

+ 1 - 1
tests/test_source.py

@@ -82,7 +82,7 @@ class SourceCodeComplianceTests(unittest.TestCase):
         python_files = []
         for root, dirs, files in os.walk(dulwich_dir):
             # Skip build directories
-            if root.endswith("build") or root.endswith("__pycache__"):
+            if root.endswith(("build", "__pycache__")):
                 continue
 
             for file in files: