From de241b47cca26fe2f44ceeca9b25e8eecb9d2e8a Mon Sep 17 00:00:00 2001 From: lethosor Date: Sun, 5 Sep 2021 22:24:16 -0400 Subject: [PATCH] Check for CI env var instead of TRAVIS --- travis/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/lint.py b/travis/lint.py index 05aa28950..ef4f6d02d 100755 --- a/travis/lint.py +++ b/travis/lint.py @@ -81,7 +81,7 @@ class Linter(object): class NewlineLinter(Linter): msg = 'Contains DOS-style newlines' # git supports newline conversion. Catch in CI, ignore on Windows. - ignore = os.linesep != '\n' and not os.environ.get('TRAVIS') + ignore = os.linesep != '\n' and not os.environ.get('CI') def check_line(self, line): return '\r' not in line def fix_line(self, line):