##// END OF EJS Templates
extensions: stop using the `pycompat.open()` shim
Matt Harbison -
r53264:89126d55 default
parent child Browse files
Show More
@@ -19,9 +19,6 from .i18n import (
19 19 _,
20 20 gettext,
21 21 )
22 from .pycompat import (
23 open,
24 )
25 22
26 23 from . import (
27 24 cmdutil,
@@ -805,7 +802,7 def _moduledoc(file):
805 802 def _disabledhelp(path):
806 803 '''retrieve help synopsis of a disabled extension (without importing)'''
807 804 try:
808 with open(path, b'rb') as src:
805 with open(path, 'rb') as src:
809 806 doc = _moduledoc(src)
810 807 except IOError:
811 808 return
@@ -888,7 +885,7 def _disabledcmdtable(path):
888 885
889 886 This may raise IOError or SyntaxError.
890 887 """
891 with open(path, b'rb') as src:
888 with open(path, 'rb') as src:
892 889 root = ast.parse(src.read(), path)
893 890 cmdtable = {}
894 891
General Comments 0
You need to be logged in to leave comments. Login now