Skip to content

Commit 8f9bb97

Browse files
committed
Add additional checking for utf-8 in IDE converter script
1 parent 39facbe commit 8f9bb97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

integrations/selenium_ide/convert_ide.py

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ def main():
4040
code_lines = all_code.split('\n')
4141
for line in code_lines:
4242

43+
# Handle utf-8 encoding if present
44+
data = re.findall('^\s*# -\*- coding: utf-8 -\*-\s*$', line)
45+
if data:
46+
has_unicode = True
47+
continue
48+
4349
# Handle class definition
4450
data = re.findall('^class\s\S+\(unittest\.TestCase\):\s*$', line)
4551
if data:

0 commit comments

Comments
 (0)