From: W. Trevor King Date: Fri, 16 Mar 2012 03:49:32 +0000 (-0400) Subject: Fix log string formatting in AFM.move_toward_surface(). X-Git-Tag: v0.4~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5e246b40f97558bfdfdffd5c98394fe30cc9dca;p=pyafm.git Fix log string formatting in AFM.move_toward_surface(). --- 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):