This website requires JavaScript.
Explore
Help
Sign In
Yaltik
/
hy
Watch
2
Star
0
Fork
0
You've already forked hy
Code
Pull Requests
Releases
Activity
6cced31738
hy
/
tests
/
resources
/
bin
/
__init__.hy
3 lines
42 B
Hy
Raw
Normal View
History
Unescape
Escape
Fixes a long-standing bug in import under Python 3.3 and later. Our MetaImporter was being inserted at the end of sys.meta_path. For Python prior to 3.3, this was fine since sys.meta_path was empty by default. As of the completion of PEP 302 in Py3.3 and later, there are several importers registered by default. One of these was trying (and failing) to import simple Hy modules, resulting in a failure to import anything inside __init__.hy. This change simply inserts the Hy-specific importer at the front of the list. This was noted in issue #620 (great catch @algernon)
2014-12-07 19:02:48 +01:00
(
defn
-null-fn-for-import-test
[
]
pass
)
Copy Permalink