Undefined name: Define RegError

This commit is contained in:
Christian Clauss
2020-01-20 14:41:29 +01:00
committed by GitHub
parent a10d9a617f
commit 90335bb925

View File

@@ -40,6 +40,12 @@ from struct import pack, unpack, unpack_from
import json
import getopt
try:
RegError
except NameError:
class RegError(Exception):
pass
# Routines common to Mac and PC
# Wrap a stream so that output gets flushed immediately