kill py_compile's homemade encoding detection in favor of tokenize.detect_encoding() (see #8168)
diff --git a/Misc/NEWS b/Misc/NEWS
index f1b068b..5484d39 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -283,6 +283,8 @@
 Library
 -------
 
+- Issue #8168: py_compile now handles files with utf-8 BOMS.
+
 - ``tokenize.detect_encoding`` now returns ``'utf-8-sig'`` when a UTF-8 BOM is
   detected.