X Tutup
Skip to content

Commit ad753f6

Browse files
Fix pkgutil.get_data for sample-config
1 parent 85e63b4 commit ad753f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def load_module(self, name):
250250
if self.file is not None:
251251
self.file.close()
252252

253+
def get_data(self, pathname):
254+
return open(pathname, "rb").read()
255+
253256

254257
class ImportFinder(object):
255258

0 commit comments

Comments
 (0)
X Tutup