Skip to content

Conversation

@histrio
Copy link
Owner

@histrio histrio commented Sep 8, 2025

No description provided.

@histrio histrio requested a review from Copilot September 8, 2025 08:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes Python 2 compatibility code from the pycouchdb library, modernizing the codebase to work exclusively with Python 3. The refactor eliminates conditional imports, version checking, and legacy string/unicode type handling.

  • Removes __future__ imports that were required for Python 2 compatibility
  • Eliminates Python version checking and conditional imports for urllib modules
  • Updates documentation to reflect the removal of Python 2 support

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/test_integration.py Removes __future__ imports for print_function and unicode_literals
pycouchdb/utils.py Removes Python version checking and conditional imports, simplifies urllib imports
pycouchdb/resource.py Removes unicode_literals __future__ import
README.md Updates CI badge branch reference and removes mention of Python 3 compatibility issues

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# py-couchdb

[![CI](https://github.com/histrio/py-couchdb/actions/workflows/main.yml/badge.svg?branch=no-py2)](https://github.com/histrio/py-couchdb/actions/workflows/main.yml)
[![CI](https://github.com/histrio/py-couchdb/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/histrio/py-couchdb/actions/workflows/main.yml)
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

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

The CI badge branch reference changed from 'no-py2' to 'master', but this appears unrelated to dropping Python 2 compatibility. Consider using a more appropriate branch name or verify this change is intentional for the refactoring.

Copilot uses AI. Check for mistakes.
@histrio histrio merged commit ee950a9 into master Sep 8, 2025
10 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.

1 participant