diff --git a/user_manual/python_scripting/introduction_to_python_scripting.rst b/user_manual/python_scripting/introduction_to_python_scripting.rst --- a/user_manual/python_scripting/introduction_to_python_scripting.rst +++ b/user_manual/python_scripting/introduction_to_python_scripting.rst @@ -94,7 +94,6 @@ .. code:: python - import sys from krita import * print(Krita.instance().filters()) @@ -114,7 +113,6 @@ .. code:: python - import sys from krita import * print(Krita.instance().documents()) @@ -187,4 +185,4 @@ However, it is possible to compile it with python 2. To do so, you will need to add the following to the cmake configuration line:: - -DENABLE_PYTHON_2=ON \ No newline at end of file + -DENABLE_PYTHON_2=ON diff --git a/user_manual/python_scripting/krita_python_plugin_howto.rst b/user_manual/python_scripting/krita_python_plugin_howto.rst --- a/user_manual/python_scripting/krita_python_plugin_howto.rst +++ b/user_manual/python_scripting/krita_python_plugin_howto.rst @@ -104,7 +104,6 @@ .. code:: python - import sys from krita import * class MyExtension(Extension): @@ -161,7 +160,6 @@ .. code:: python - import sys from krita import * from PyQt5.QtWidgets import QFileDialog @@ -242,7 +240,6 @@ .. code:: python - import sys from PyQt5.QtWidgets import * from krita import *