Skip to content

Update for recent Python versions, minor bug fixes - #56

Merged
fghaas merged 5 commits into
cleura:masterfrom
fghaas:update
Oct 15, 2026
Merged

fghaas merged 5 commits into
cleura:masterfrom
fghaas:update

Conversation

@fghaas

@fghaas fghaas commented Oct 14, 2026

Copy link
Copy Markdown
Contributor
  • build: Drop Python 3.8-3.10, add 3.13, 3.14
  • test: update fenced-code-blocks.html golden file for newer Pygments
  • refactor: replace deprecated codecs.open() with builtin open()
  • refactor: replace deprecated logging.warn() with logging.warning()
  • fix: properly close archive file handle in UploadHelper.upload()

- Drop Python 3.8, 3.9, and 3.10 from the test matrix.
- Add Python 3.13 and 3.14.
- Clean up the GitLab CI pipeline definition.
Newer Pygments versions wrap whitespace between tokens as <span class="w">
and use literal quotes instead of HTML entities, so the expected HTML
output needed to be updated.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8
The codecs.open() function is deprecated in Python 3.4+. Replace
it with open() using the encoding= keyword argument in
olxutils/templates.py and olxutils/helpers.py, and remove the
now-unused import.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8
The warn() function has been deprecated since Python 3.3. Use
warning() instead.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8
The file opened via open(self.archive, "rb") was never closed,
triggering ResourceWarning. Wrap the request in a "with open()"
block so the file is closed after the POST completes.

Assisted-by: opencode/qwen3.6-35b-a3b-fp8
@fghaas fghaas changed the title update Update for recent Python versions, minor bug fixes Oct 15, 2026
@fghaas
fghaas requested a review from mrtmm October 15, 2026 12:05
@fghaas
fghaas marked this pull request as ready for review October 15, 2026 12:05
@fghaas
fghaas merged commit 20003f9 into cleura:master Oct 15, 2026
5 checks passed
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.

2 participants