mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
696 B
30 lines
696 B
#!/usr/bin/env python2
|
|
#
|
|
# Throwaway utility to dump Ditz issues for grooming.
|
|
#
|
|
|
|
import os
|
|
import sys
|
|
import yaml
|
|
|
|
def main():
|
|
def issueConstructor(loader, node):
|
|
return node
|
|
|
|
yaml.add_constructor('!ditz.rubyforge.org,2008-03-06/issue', issueConstructor)
|
|
|
|
for fn in os.listdir(sys.argv[1]):
|
|
if fn[0:6] != 'issue-':
|
|
continue
|
|
with open(os.path.join(sys.argv[1], fn), 'rb') as f:
|
|
doc = yaml.load(f)
|
|
tmp = {}
|
|
for k,v in doc.value:
|
|
tmp[k.value] = v.value
|
|
if tmp.get('status', '') != ':closed':
|
|
print('*** ' + fn)
|
|
print(tmp.get('title', u'NOTITLE').encode('utf-8') + '\n')
|
|
print(tmp.get('desc', u'').encode('utf-8') + '\n')
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|