mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
20 lines
529 B
Ruby
20 lines
529 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Language
|
|
module Python
|
|
class << self
|
|
module Compat
|
|
def rewrite_python_shebang(python_path)
|
|
odeprecated "Language::Python.rewrite_python_shebang",
|
|
"Utils::Shebang.rewrite_shebang and Shebang.python_shebang_rewrite_info(python_path)"
|
|
Pathname.pwd.find do |f|
|
|
Utils::Shebang.rewrite_shebang(Shebang.python_shebang_rewrite_info(python_path), f)
|
|
end
|
|
end
|
|
end
|
|
|
|
prepend Compat
|
|
end
|
|
end
|
|
end
|