Skip to content

Commit abeac21

Browse files
utkarshayachitkwrobot
authored andcommitted
Merge topic 'fix-use-of-argparse-fallback'
5590b0d Move VTK to get addition of _argparse.py to vtk.util package. 5c12b86 Fix how we import our argparse fallback implementation.
2 parents c605400 + 5590b0d commit abeac21

File tree

7 files changed

+6
-2367
lines changed

7 files changed

+6
-2367
lines changed

VTK

Submodule VTK updated from 7232a4a to 126c53d

Web/Applications/DataProber/server/pv_web_data_prober.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
except ImportError:
5757
# since Python 2.6 and earlier don't have argparse, we simply provide
5858
# the source for the same as _argparse and we use it instead.
59-
import _argparse as argparse
59+
from vtk.util import _argparse as argparse
6060

6161
# =============================================================================
6262
# Create custom Data Prober class to handle clients requests

Web/Applications/FileViewer/server/pv_web_file_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
except ImportError:
6565
# since Python 2.6 and earlier don't have argparse, we simply provide
6666
# the source for the same as _argparse and we use it instead.
67-
import _argparse as argparse
67+
from vtk.util import _argparse as argparse
6868

6969
# =============================================================================
7070
# Create custom File Opener class to handle clients requests

Web/Applications/TestApp/server/pv_web_test_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
except ImportError:
4545
# since Python 2.6 and earlier don't have argparse, we simply provide
4646
# the source for the same as _argparse and we use it instead.
47-
import _argparse as argparse
47+
from vtk.util import _argparse as argparse
4848

4949
# =============================================================================
5050
# Create custom class to handle clients requests

Web/Applications/Visualizer/server/pv_web_visualizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
except ImportError:
9797
# since Python 2.6 and earlier don't have argparse, we simply provide
9898
# the source for the same as _argparse and we use it instead.
99-
import _argparse as argparse
99+
from vtk.util import _argparse as argparse
100100

101101
# =============================================================================
102102
# Create custom Pipeline Manager class to handle clients requests

0 commit comments

Comments
 (0)