فهرست منبع

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 = []
         python_files = []
         for root, dirs, files in os.walk(dulwich_dir):
         for root, dirs, files in os.walk(dulwich_dir):
             # Skip build directories
             # Skip build directories
-            if root.endswith("build") or root.endswith("__pycache__"):
+            if root.endswith(("build", "__pycache__")):
                 continue
                 continue
 
 
             for file in files:
             for file in files: