Overview
Comment: | Removed some pylint warnings |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
86c3c38746aff6232f6a491d228a7c82 |
User & Date: | vitus on 2019-10-04 17:14:01 |
Other Links: | manifest | tags |
Context
2020-01-14
| ||
12:00 | Some documentation improvements check-in: bea4cf20e9 user: vitus tags: trunk | |
2019-10-04
| ||
17:14 | Removed some pylint warnings check-in: 86c3c38746 user: vitus tags: trunk | |
09:44 | Removed extra undescore from list of keys check-in: 9139746602 user: vitus tags: trunk | |
Changes
Modified vws from [772ec62123] to [7cc9536f49].
︙ | ︙ | |||
145 146 147 148 149 150 151 | answer = send_command(sock, "info block") return re.search(": /tmp", answer) is not None def read_netinfo(filename): """ Reads network information from start script """ with open(filename, "r") as f: for line in f: | | | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | answer = send_command(sock, "info block") return re.search(": /tmp", answer) is not None def read_netinfo(filename): """ Reads network information from start script """ with open(filename, "r") as f: for line in f: match = re.search("-net nic,(?:\\S*,)?macaddr=(\\S+) -net ([^, ]+)", line) if match: f = {"mac":match.group(1)} if match.group(2) == "user": f["iface"] = "user" elif match.group(2) == "bridge": f["iface"] = re.search("br=(\\S+)", line).group(1) else: |
︙ | ︙ | |||
1015 1016 1017 1018 1019 1020 1021 | p.add_argument('snapname', help='name of snapshot to revert to') p = new_command(cmds, 'commit', help='Commit snapshot changes into backing file') p = new_command(cmds, 'snapshots', help='List existing snapshots') # Screenshoits and recording p = new_command(cmds, 'screenshot', help='take a screenshot', description='Takes a screenshot', | | > | 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 | p.add_argument('snapname', help='name of snapshot to revert to') p = new_command(cmds, 'commit', help='Commit snapshot changes into backing file') p = new_command(cmds, 'snapshots', help='List existing snapshots') # Screenshoits and recording p = new_command(cmds, 'screenshot', help='take a screenshot', description='Takes a screenshot', epilog="Writes current screen contents of the virtual " + "machine into PPM format file") p.add_argument('filename', metavar='filename.ppm', help='PPM image filename to write screenshot to') p = new_command(cmds, 'record', help='Record audio output from VM') p.add_argument('filename', help='wav file to record autdio to') new_command(cmds, 'stoprecord', help='stop recording audio') p = new_command(cmds, 'sendkey', help='Send a keystroke to VM', description='Send a key combination into VM', |
︙ | ︙ | |||
1078 1079 1080 1081 1082 1083 1084 | parsed_args = args.parse_args(sys.argv[1:]) os.umask(0o002) # Create command is totally different, so it is handled separately if parsed_args.command == 'create': try: cmd_create(parsed_args) | | | 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 | parsed_args = args.parse_args(sys.argv[1:]) os.umask(0o002) # Create command is totally different, so it is handled separately if parsed_args.command == 'create': try: cmd_create(parsed_args) except Exception as ex: # pylint: disable=broad-except print(str(ex), file=sys.stderr) if hasattr(parsed_args, "dir"): import shutil shutil.rmtree(parsed_args.dir) sys.exit(1) sys.exit(0) |
︙ | ︙ |