Skip to content

Commit

Permalink
Do not rely on f-strings
Browse files Browse the repository at this point in the history
Unfortunately some cloud sites still are on py3.5, so lets not rely on
f-strings for now and set minimum version to 3.5
  • Loading branch information
alvarolopez committed Feb 5, 2021
1 parent 2ed02cc commit d1bd16b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions caso/messenger/ssm.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def __init__(self):
utils.makedirs(CONF.ssm.output_path)

def push_compute_message(self, queue, entries):
message = f"APEL-cloud-message: v{self.compute_version}\n"
message = "APEL-cloud-message: v%s\n" % self.compute_version
aux = "%%\n".join(entries)
message += f"{aux}\n"
message += "%s\n" % aux
queue.add(message)

def push_ip_message(self, queue, entries):
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ project_urls =
license = Apache-2
license_file = LICENSE

python-requires = >=3.6
python-requires = >=3.5

classifier =
Development Status :: 5 - Production/Stable
Expand All @@ -27,6 +27,7 @@ classifier =
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Expand Down

0 comments on commit d1bd16b

Please sign in to comment.