From c5e246b40f97558bfdfdffd5c98394fe30cc9dca Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 15 Mar 2012 23:49:32 -0400 Subject: [PATCH] Fix log string formatting in AFM.move_toward_surface(). --- pyafm/afm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyafm/afm.py b/pyafm/afm.py index e6d7fb5..dd6d239 100644 --- a/pyafm/afm.py +++ b/pyafm/afm.py @@ -464,7 +464,7 @@ class AFM (object): """Step in approximately `distance` meters. """ steps = int(distance/self.stepper.step_size) - _LOG.info('step in {} steps (~{} m)' % (steps, distance)) + _LOG.info('step in {} steps (~{} m)'.format(steps, distance)) self.stepper.step_relative(steps) def move_away_from_surface(self, distance=None): -- 2.26.2