You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the migration from Python 2 to Python 3, this PR ensures that all Python files in sonic-utilities are Python 3-compliant, and work with both Python 2 and Python 3.
Once this is merged, we can begin building a Python 3-based version of the sonic-utilities package.
print"restoration time not defined; default to 2 times detection time: %d ms"% (2*detection_time)
173
+
click.echo("restoration time not defined; default to 2 times detection time: %d ms"% (2*detection_time))
175
174
176
175
forportinports:
177
176
ifport=="all":
@@ -209,7 +208,7 @@ def interval(poll_interval):
209
208
entry_min=restoration_time_entry_value
210
209
entry_min_str="restoration time"
211
210
ifentry_min<poll_interval:
212
-
print>>sys.stderr, "unable to use polling interval = {}ms, value is bigger than one of the configured {} values, please choose a smaller polling_interval".format(poll_interval,entry_min_str)
211
+
click.echo("unable to use polling interval = {}ms, value is bigger than one of the configured {} values, please choose a smaller polling_interval".format(poll_interval,entry_min_str), err=True)
0 commit comments