Skip to content

Commit

Permalink
[#34] fix python warning for improper regex escape
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic-builder OSSO committed Nov 20, 2024
1 parent c6efb08 commit ba92d3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sonic-device-data/tests/hwsku_json_checker
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sys
# Global variable
PORT_ATTRIBUTES = ["default_brkout_mode"]
OPTIONAL_PORT_ATTRIBUTES = ["fec", "autoneg", "port_type", "subport", "role"]
PORT_REG = "Ethernet(\d+)"
PORT_REG = r"Ethernet(\d+)"
HWSKU_JSON = '*hwsku.json'
INTF_KEY = "interfaces"

Expand Down
2 changes: 1 addition & 1 deletion src/sonic-device-data/tests/platform_json_checker
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import sys
# Global variable
PORT_ATTRIBUTES = ["index", "lanes", "breakout_modes"]
ATTR_LEN = len(PORT_ATTRIBUTES)
PORT_REG = "Ethernet(\d+)"
PORT_REG = r"Ethernet(\d+)"
PLATFORM_JSON = '*platform.json'
INTF_KEY = "interfaces"
CHASSIS_KEY = "chassis"
Expand Down

0 comments on commit ba92d3e

Please sign in to comment.