Skip to content

fix python 2 iteritems() to use items() part of python3 migration - #84

Merged
Ikreb1 merged 1 commit into
mainfrom
fix-python2-regression
Sep 3, 2026
Merged

fix python 2 iteritems() to use items() part of python3 migration#84
Ikreb1 merged 1 commit into
mainfrom
fix-python2-regression

Conversation

@Ikreb1

@Ikreb1 Ikreb1 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Python3 regression tests in teamcity flag this as iteritems() as outdated and item() should be used instead

Copilot AI lite review requested due to automatic review settings September 3, 2026 09:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change is small, clearly scoped to Python 3 compatibility, and does not introduce behavioral changes beyond replacing a Python 2-only API.

Pull request overview

Updates the shader compiler Python wrapper to be Python 3–compatible by removing a Python 2-only dictionary iteration API, with a couple of minor formatting-only adjustments.

Changes:

  • Replace (defines or {}).iteritems() with (defines or {}).items() for Python 3 compatibility.
  • Reformat long os.path.join(...)/os.path.abspath(...) lines for readability (no functional change).
File summaries
File Description
shadercompiler/python/shadercompiler/compiler.py Python 3 migration fix for dict iteration in compile_shader; minor line wrapping/spacing.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Ikreb1
Ikreb1 merged commit 2fc02cd into main Sep 3, 2026
2 of 22 checks passed
@Ikreb1
Ikreb1 deleted the fix-python2-regression branch September 3, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants