File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ python
29
29
# Imports ----------------------------------------------------------------------
30
30
31
31
import ast
32
+ import io
32
33
import itertools
33
34
import math
34
35
import os
35
36
import re
36
37
import struct
37
38
import traceback
38
- from io import open
39
39
40
40
# Common attributes ------------------------------------------------------------
41
41
@@ -1185,7 +1185,7 @@ class Source(Dashboard.Module):
1185
1185
if style_changed or file_name != self .file_name or ts and ts > self .ts :
1186
1186
try :
1187
1187
# reload the source file if changed
1188
- with open (file_name , errors = 'ignore' ) as source_file :
1188
+ with io . open (file_name , errors = 'ignore' ) as source_file :
1189
1189
highlighter = Beautifier (file_name , self .tab_size )
1190
1190
self .highlighted = highlighter .active
1191
1191
source = highlighter .process (source_file .read ())
You can’t perform that action at this time.
0 commit comments