Skip to content

Commit b95fb07

Browse files
committed
-cpu/m6805/m68hc05e1.cpp: Added missing header with inline function definitions to fix link errors.
-scripts/minimaws: Fixed deprecation warning in Python 3.11 (cgi module deprecated).
1 parent 029341a commit b95fb07

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scripts/minimaws/lib/wsgiserve.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from . import dbaccess
77
from . import htmltmpl
88

9-
import cgi
109
import inspect
1110
import json
1211
import mimetypes
@@ -16,11 +15,12 @@
1615
import urllib
1716
import wsgiref.util
1817

19-
if hasattr(cgi, 'escape'):
20-
htmlescape = cgi.escape
21-
else:
18+
try:
2219
import html
2320
htmlescape = html.escape
21+
except ImportError:
22+
import cgi
23+
htmlescape = cgi.escape
2424

2525
try:
2626
import urllib.parse as urlparse

src/devices/cpu/m6805/m68hc05e1.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include "emu.h"
88
#include "m68hc05e1.h"
9+
#include "m6805defs.h"
910
#include "6805dasm.h"
1011

1112
#define VERBOSE (0)

0 commit comments

Comments
 (0)