##// 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 gettext,
20 gettext,
21 )
21 )
22 from .pycompat import (
23 open,
24 )
25
22
26 from . import (
23 from . import (
27 cmdutil,
24 cmdutil,
@@ -805,7 +802,7 def _moduledoc(file):
805 def _disabledhelp(path):
802 def _disabledhelp(path):
806 '''retrieve help synopsis of a disabled extension (without importing)'''
803 '''retrieve help synopsis of a disabled extension (without importing)'''
807 try:
804 try:
808 with open(path, b'rb') as src:
805 with open(path, 'rb') as src:
809 doc = _moduledoc(src)
806 doc = _moduledoc(src)
810 except IOError:
807 except IOError:
811 return
808 return
@@ -888,7 +885,7 def _disabledcmdtable(path):
888
885
889 This may raise IOError or SyntaxError.
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 root = ast.parse(src.read(), path)
889 root = ast.parse(src.read(), path)
893 cmdtable = {}
890 cmdtable = {}
894
891
General Comments 0
You need to be logged in to leave comments. Login now