Skip to content

Commit 56a8c01

Browse files
committed
Fix for python syntax error
- since the file has non-ASCII characters, it can fail with a compile error if the doc type is not specified. This edit corrects for that. `$ python ../SwiftPlate/testStructure.py test` File "testStructure.py", line 30 SyntaxError: Non-ASCII character '\xe2' in file testStructure.py on line 30, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
1 parent 6253be4 commit 56a8c01

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testStructure.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
# -*- coding: utf-8 -*-
3+
14
import sys
25
import os
36
from os.path import join, getsize
@@ -28,4 +31,4 @@
2831
print("Test Directories not found")
2932
exit(1)
3033
print("All tests run successfully ⭐⭐⭐⭐⭐")
31-
exit(0)
34+
exit(0)

0 commit comments

Comments
 (0)