Skip to content

Commit 1df3574

Browse files
committed
Replace f-strings with format() to ensure compatibility with Python 3.5
1 parent abcd389 commit 1df3574

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

supervisor/options.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ def process_config_file(self, do_usage=True):
442442
# if this is called from an RPC method, raise an error
443443
raise ValueError(msg)
444444
if hasattr(self, 'minfds') and hasattr(self, 'minprocs'):
445-
print(f"Debug: minfds = {self.minfds}")
446-
print(f"Debug: minprocs = {self.minprocs}")
445+
print("Debug: minfds = {}".format(self.minfds))
446+
print("Debug: minprocs = {}".format(self.minprocs))
447447
# Previous version
448448
# def process_config_file(self, do_usage):
449449
# # Process config file
@@ -1930,8 +1930,9 @@ def set_rlimits_or_exit(self):
19301930
usage() if any rlimits could not be set."""
19311931
limits = []
19321932
if hasattr(self, 'minfds') and hasattr(self, 'minprocs'):
1933-
print(f"Debug: minfds = {self.minfds}")
1934-
print(f"Debug: minprocs = {self.minprocs}")
1933+
print("Debug: minfds = {}".format(self.minfds))
1934+
print("Debug: minprocs = {}".format(self.minprocs))
1935+
19351936

19361937
if hasattr(resource, "RLIMIT_NOFILE"):
19371938
if self.minfds is None:

0 commit comments

Comments
 (0)