File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change
1
+ import codecs
2
+ import json
3
+ import os
1
4
import re
2
5
import markdown
3
- import os
4
- import sys
5
6
import yaml
6
- import json
7
- import codecs
8
7
9
8
IGNORED_FILES = ["index.md" , "accessing-rql/event_emitter.md" ]
10
9
@@ -118,7 +117,7 @@ def add_io_field(file_name, result):
118
117
if is_yaml == True :
119
118
yaml_raw += line
120
119
121
- yaml_data = yaml .load (yaml_raw )
120
+ yaml_data = yaml .load (yaml_raw , Loader = yaml . Loader )
122
121
if "io" in yaml_data :
123
122
result [yaml_data ["permalink" ]]["io" ] = yaml_data ["io" ]
124
123
else :
@@ -131,7 +130,7 @@ def browse_files(base, result):
131
130
for path , dirs , files in os .walk (base ):
132
131
rel = path [len (base )+ 1 :]
133
132
for item in files :
134
- print os .path .join (rel , item )
133
+ print ( os .path .join (rel , item ) )
135
134
if os .path .join (rel , item ) not in IGNORED_FILES :
136
135
add_io_field (os .path .join (path , item ), result )
137
136
You can’t perform that action at this time.
0 commit comments