From b1a5c762151daac9e1751e2f19031ca376a22c70 Mon Sep 17 00:00:00 2001
From: xitong <lixiton@gmail.com>
Date: Mon, 19 Aug 2019 16:08:53 +0800
Subject: [PATCH] Fix a typo

---
 .../py_core/py_optimization/py_optimization.markdown            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/py_tutorials/py_core/py_optimization/py_optimization.markdown b/doc/py_tutorials/py_core/py_optimization/py_optimization.markdown
index 7623a8ff3a..4631d3bf58 100644
--- a/doc/py_tutorials/py_core/py_optimization/py_optimization.markdown
+++ b/doc/py_tutorials/py_core/py_optimization/py_optimization.markdown
@@ -40,7 +40,7 @@ goal):
 img1 = cv.imread('messi5.jpg')
 
 e1 = cv.getTickCount()
-for i in xrange(5,49,2):
+for i in range(5,49,2):
     img1 = cv.medianBlur(img1,i)
 e2 = cv.getTickCount()
 t = (e2 - e1)/cv.getTickFrequency()