Skip to content

Commit bc0df17

Browse files
Merge branch 'master' of github.com:fernandezcuesta/yamllint
2 parents 2200174 + fa1b362 commit bc0df17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

yamllint/rules/float_values.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@
106106
}
107107

108108
IS_NUMERAL_BEFORE_DECIMAL_PATTERN = (
109-
re.compile('[-+]?(\\.[0-9]+)([eE][-+]?[0-9]+)?$')
109+
re.compile(r'[-+]?(\.[0-9]+)([eE][-+]?[0-9]+)?$')
110110
)
111111
IS_SCIENTIFIC_NOTATION_PATTERN = re.compile(
112-
'[-+]?(\\.[0-9]+|[0-9]+(\\.[0-9]*)?)([eE][-+]?[0-9]+)$'
112+
r'[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)$'
113113
)
114-
IS_INF_PATTERN = re.compile('[-+]?(\\.inf|\\.Inf|\\.INF)$')
115-
IS_NAN_PATTERN = re.compile('(\\.nan|\\.NaN|\\.NAN)$')
114+
IS_INF_PATTERN = re.compile(r'[-+]?(\.inf|\.Inf|\.INF)$')
115+
IS_NAN_PATTERN = re.compile(r'(\.nan|\.NaN|\.NAN)$')
116116

117117

118118
def check(conf, token, prev, next, nextnext, context):

0 commit comments

Comments
 (0)