Skip to content
Snippets Groups Projects
Commit 2def6c67 authored by Jean-Christophe Fillion-Robin's avatar Jean-Christophe Fillion-Robin
Browse files

STYLE: src/Python: Fix "undefined name" issues

parent 5986e9b3
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,3 @@ ignore =
F403,
# F405 'XXXX' may be undefined, or defined from star imports
F405,
# F821 undefined name 'constant'
F821,
# F821 undefined name 'os'
F821,
# F821 undefined name 'unicode'
F821,
import vtk
filename = "archive.vtp"
reader = vtk.vtkXMLPolyDataReader()
path = os.path.join(constant.BASE_DIR, "archive.vtp") # Archive path
reader.SetFileName(path)
reader.SetFileName(filename)
reader.Update()
mapper = vtk.vtkPolyDataMapper()
......
......@@ -6,7 +6,7 @@ import sys
if sys.hexversion >= 0x03000000:
unicodeEtre = '\xeatre' # unicode in Python 3
else:
unicodeEtre = unicode('\xeatre', 'latin1')
unicodeEtre = unicode('\xeatre', 'latin1') # noqa: F821
#
# Basic vtkVariant usage
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment