pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.93k stars 383 forks source link

pyinfra/connectors: Fixed broken get for non-utf8 files (#1208) #1214

Closed evoldstad closed 2 months ago

evoldstad commented 2 months ago

A small fix that allows for using the "get" operator on files with different encoding than utf8, which currently results in a UnicodeDecodeError. This fix should allow the get operation to be more encoding-agnostic.

There is an example project in #1208 that demonstrates the currently broken behavior.