mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2025-12-31 17:00:41 +00:00
Autopep8
This commit is contained in:
@@ -2,7 +2,8 @@ from . import WavInfoReader
|
|||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import sys, os
|
import sys
|
||||||
|
import os
|
||||||
import json
|
import json
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
import importlib.metadata
|
import importlib.metadata
|
||||||
@@ -27,16 +28,16 @@ def main():
|
|||||||
|
|
||||||
parser.usage = 'wavinfo (--adm | --ixml) <FILE> +'
|
parser.usage = 'wavinfo (--adm | --ixml) <FILE> +'
|
||||||
|
|
||||||
# parser.add_option('--install-manpages',
|
# parser.add_option('--install-manpages',
|
||||||
# help="Install manual pages for wavinfo",
|
# help="Install manual pages for wavinfo",
|
||||||
# default=False,
|
# default=False,
|
||||||
# action='store_true')
|
# action='store_true')
|
||||||
|
|
||||||
parser.add_option('--man',
|
parser.add_option('--man',
|
||||||
help="Read the manual",
|
help="Read the manual",
|
||||||
default=False,
|
default=False,
|
||||||
action='store_true')
|
action='store_true')
|
||||||
|
|
||||||
parser.add_option('--adm', dest='adm',
|
parser.add_option('--adm', dest='adm',
|
||||||
help='Output ADM XML',
|
help='Output ADM XML',
|
||||||
default=False,
|
default=False,
|
||||||
@@ -53,7 +54,7 @@ def main():
|
|||||||
# print("Installing manpages...")
|
# print("Installing manpages...")
|
||||||
# print(f"Docfiles at {__file__}")
|
# print(f"Docfiles at {__file__}")
|
||||||
# return
|
# return
|
||||||
|
|
||||||
if options.man:
|
if options.man:
|
||||||
print("Which man page?")
|
print("Which man page?")
|
||||||
print("1) wavinfo usage")
|
print("1) wavinfo usage")
|
||||||
@@ -86,7 +87,7 @@ def main():
|
|||||||
'run_date': datetime.datetime.now().isoformat(),
|
'run_date': datetime.datetime.now().isoformat(),
|
||||||
'application': f"wavinfo {version}",
|
'application': f"wavinfo {version}",
|
||||||
'scopes': {}
|
'scopes': {}
|
||||||
}
|
}
|
||||||
for scope, name, value in this_file.walk():
|
for scope, name, value in this_file.walk():
|
||||||
if scope not in ret_dict['scopes'].keys():
|
if scope not in ret_dict['scopes'].keys():
|
||||||
ret_dict['scopes'][scope] = {}
|
ret_dict['scopes'][scope] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user