Skip to content

Commit

Permalink
Fix SyntaxWarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Nov 15, 2024
1 parent 964c95c commit ba54d03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def example_files(self):
mlab_ref_dir = join(DEFAULT_INPUT_DIR, 'mayavi', 'auto')

source_path = join('examples', 'mayavi')
sources = '(\.py)|(\.rst)$'
excluded_dirs = '^\.'
sources = r'(\.py)|(\.rst)$'
excluded_dirs = r'^\.'
target_path = mlab_ref_dir
target_time = self.latest_modified(target_path,
ignore_dirs=excluded_dirs)[0]
Expand Down
14 changes: 7 additions & 7 deletions tvtk/wrapper_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,22 +1591,22 @@ def _write_trait_with_range(self, klass, out, vtk_attr_name):
# the code for this trait,
# i.e. getattr(self, name_of_method)(...)
special_traits = {
'[a-zA-Z0-9]+\.Output$': (
r'[a-zA-Z0-9]+\.Output$': (
False, False, '_write_any_output'),
'[a-zA-Z0-9]+\.Source$': (
r'[a-zA-Z0-9]+\.Source$': (
False, False, '_write_any_source'),
'[a-zA-Z0-9]+\.ScalarType$': (
r'[a-zA-Z0-9]+\.ScalarType$': (
False, False, '_write_any_scalar_type'),

# In VTK > 4.5, Set/GetInput have multiple signatures
'[a-zA-Z0-9]+\.Input$': (
r'[a-zA-Z0-9]+\.Input$': (
False, False, '_write_any_input'),

'[a-zA-Z0-9]+\.InputConnection$': (
r'[a-zA-Z0-9]+\.InputConnection$': (
False, False, '_write_any_input_connection'),
'[a-zA-Z0-9\.]+FileName$': (
r'[a-zA-Z0-9\.]+FileName$': (
True, False, '_write_any_something_file_name'),
'[a-zA-Z0-9\.]+FilePrefix$': (
r'[a-zA-Z0-9\.]+FilePrefix$': (
True, False, '_write_any_something_file_prefix'),
'vtkImageReader2.HeaderSize$': (
True, False, '_write_image_reader2_header_size'),
Expand Down

0 comments on commit ba54d03

Please sign in to comment.