From a6c9767e6be2e2fc7a50b877cbfa1cce3f8f59de Mon Sep 17 00:00:00 2001
From: Davis King <davis@dlib.net>
Date: Mon, 8 Jul 2013 21:32:09 -0400
Subject: [PATCH] Minor change to made code work in python 2.6

---
 python_examples/svm_struct.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python_examples/svm_struct.py b/python_examples/svm_struct.py
index 2a84f101..ce9467ea 100755
--- a/python_examples/svm_struct.py
+++ b/python_examples/svm_struct.py
@@ -44,7 +44,7 @@ def main():
     # Note that the correct label is predicted for each sample.
     print weights
     for i in range(len(samples)):
-        print "predicted label for sample[{}]: {}".format(i, predict_label(weights, samples[i]))
+        print "predicted label for sample[{0}]: {1}".format(i, predict_label(weights, samples[i]))
 
 def predict_label(weights, sample):
     """Given the 9-dimensional weight vector which defines a 3 class classifier, predict the
-- 
2.18.0