1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 17:00:27 +00:00

Merge pull request #811 from sogaiu/use-deprecation-mechanism-for-file-popen

Apply deprecation machinery to file/popen
This commit is contained in:
Calvin Rose 2021-09-21 15:16:20 -05:00 committed by GitHub
commit d6f41bcf98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3690,6 +3690,10 @@
(put into k (x k)))) (put into k (x k))))
into) into)
# Deprecate file/popen
(when-let [v (get root-env 'file/popen)]
(put v :deprecated true))
# Modify root-env to remove private symbols and # Modify root-env to remove private symbols and
# flatten nested tables. # flatten nested tables.
(loop [[k v] :in (pairs root-env) (loop [[k v] :in (pairs root-env)