mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 04:02:46 +00:00
Fix cheetah usage with Python 3.
This commit is contained in:
parent
cae7eea46b
commit
d7f17a7f49
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ def render_cheetah(template_file, destination_directory, cheetah_input):
|
|||
hack."""
|
||||
pickle_file = tempfile.NamedTemporaryFile(dir=destination_directory, prefix="tito-cheetah-pickle", delete=False)
|
||||
try:
|
||||
pickle.dump(cheetah_input, pickle_file)
|
||||
pickle.dump(cheetah_input, pickle_file, protocol=2)
|
||||
pickle_file.close()
|
||||
output = run_command("cheetah fill --flat --pickle=%s --odir=%s --oext=cheetah %s" %
|
||||
(pickle_file.name, destination_directory, template_file))
|
||||
|
|
Loading…
Add table
Reference in a new issue