Skip to content

Commit 40b6d02

Browse files
author
Taarini Sarath Chander
committed
Fix syntax warning
1 parent 571fc95 commit 40b6d02

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--------------------------------------------------------------------------------
2+
Fix
3+
--------------------------------------------------------------------------------
4+
* yang.ncdiff
5+
* Fix syntax warning

ncdiff/src/yang/ncdiff/ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def parse_square_bracket(self, to_node=None):
362362
self.cut(start_idx+1, end_idx-2, tag, 2)
363363
start_idx = None
364364
else:
365-
if re.search('^\[[1-9][0-9]*\]$', substring):
365+
if re.search(r'^\[[1-9][0-9]*\]$', substring):
366366
numbers = substring[1:-1]
367367
self.cut(start_idx+1, end_idx-1, numbers, 2)
368368
else:

0 commit comments

Comments
 (0)