Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yohey Ishizu
VTK
Commits
b7746436
Verified
Commit
b7746436
authored
8 years ago
by
Chris Harris
Browse files
Options
Downloads
Patches
Plain Diff
Add python2/3 compatibility code for buffer
parent
d2903559
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Web/Python/vtk/web/__init__.py
+2
-0
2 additions, 0 deletions
Web/Python/vtk/web/__init__.py
Web/Python/vtk/web/dataset_builder.py
+1
-1
1 addition, 1 deletion
Web/Python/vtk/web/dataset_builder.py
with
3 additions
and
1 deletion
Web/Python/vtk/web/__init__.py
+
2
−
0
View file @
b7746436
...
...
@@ -5,6 +5,8 @@ py3 = sys.version_info.major > 2
if
py3
:
def
iteritems
(
d
,
**
kwargs
):
return
iter
(
d
.
items
(
**
kwargs
))
buffer
=
memoryview
else
:
def
iteritems
(
d
,
**
kwargs
):
return
d
.
iteritems
(
**
kwargs
)
buffer
=
buffer
This diff is collapsed.
Click to expand it.
Web/Python/vtk/web/dataset_builder.py
+
1
−
1
View file @
b7746436
from
vtk
import
*
from
vtk.web.camera
import
*
from
vtk.web.query_data_model
import
*
from
vtk.web
import
iteritems
from
vtk.web
import
iteritems
,
buffer
import
json
,
os
,
math
,
gzip
,
shutil
# Global helper variables
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment