Skip to content

Commit 5cb7831

Browse files
committed
docs: python3 fix in remap example code (#2408)
1 parent f47d6f7 commit 5cb7831

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/src/remap/remap.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ def change_prolog(self, **words):
721721
self.params["current_pocket"] = self.current_pocket
722722
self.params["selected_pocket"] = self.selected_pocket
723723
return INTERP_OK
724-
except Exception, e:
725-
return "M6/change_prolog: %s" % (e)
724+
except Exception as e:
725+
return "M6/change_prolog: {}".format(e)
726726
---------------------------------------------------------------------
727727

728728
You will find that most prolog functions look very similar:

0 commit comments

Comments
 (0)