Adapt iTunesParser.py for Python 3
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
"""
|
"""
|
||||||
--> Parse library and just do JSON
|
--> Parse library and just do JSON adapted for Elasticsearch
|
||||||
|
|
||||||
iTunes Graph Parser
|
iTunes Graph Parser
|
||||||
|
|
||||||
@@ -235,5 +235,5 @@ if __name__ == '__main__':
|
|||||||
print(output)
|
print(output)
|
||||||
else:
|
else:
|
||||||
with io.open(options.output, 'wb') as outfile:
|
with io.open(options.output, 'wb') as outfile:
|
||||||
outfile.write(output)
|
outfile.write(bytes(output, 'UTF-8'))
|
||||||
print('JSON data written to: ' + options.output)
|
print('JSON data written to: ' + options.output)
|
||||||
|
|||||||
Reference in New Issue
Block a user