Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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.
![PyPI](https://img.shields.io/pypi/v/pycouchdb)
![PyPI - Downloads](https://img.shields.io/pypi/dm/pycouchdb)
[![Coverage Status](https://coveralls.io/repos/github/histrio/py-couchdb/badge.svg?branch=master)](https://coveralls.io/github/histrio/py-couchdb?branch=master)
Expand All @@ -13,7 +13,7 @@ Modern pure python [CouchDB](https://couchdb.apache.org/) Client.
Currently there are several libraries in python to connect to couchdb. **Why one more?**
It's very simple.

All seems not be maintained, all libraries used standard Python libraries for http requests, and are not compatible with python3.
All seems not be maintained, all libraries used standard Python libraries for http requests.



Expand Down
2 changes: 0 additions & 2 deletions pycouchdb/resource.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

import json
import requests

Expand Down
22 changes: 5 additions & 17 deletions pycouchdb/utils.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
# -*- coding: utf-8 -*-

import json
import sys
from urllib.parse import unquote as _unquote
from urllib.parse import urlunsplit, urlsplit
from functools import reduce


if sys.version_info[0] == 3:
from urllib.parse import unquote as _unquote
from urllib.parse import urlunsplit, urlsplit

string_type = str
bytes_type = bytes

from functools import reduce

else:
from urllib import unquote as _unquote
from urlparse import urlunsplit, urlsplit

string_type = unicode # noqa: F821
bytes_type = str
string_type = str
bytes_type = bytes

URLSPLITTER = '/'

Expand Down
2 changes: 0 additions & 2 deletions test/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# -*- coding: utf-8 -*-

from __future__ import print_function, unicode_literals

import pytest
import types

Expand Down