Skip to content

Commit bfc7a9c

Browse files
authored
Version 2.1.1 (#211)
1 parent 6d2ab17 commit bfc7a9c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
All notable changes to charset-normalizer will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

5+
## [2.1.1](https://github.com/Ousret/charset_normalizer/compare/2.1.0...2.1.1) (2022-08-19)
6+
7+
### Deprecated
8+
- Function `normalize` scheduled for removal in 3.0
9+
10+
### Changed
11+
- Removed useless call to decode in fn is_unprintable (#206)
12+
13+
### Fixed
14+
- Third-party library (i18n xgettext) crashing not recognizing utf_8 with underscore from [@aleksandernovikov](https://github.com/aleksandernovikov) (#204)
15+
516
## [2.1.0](https://github.com/Ousret/charset_normalizer/compare/2.0.12...2.1.0) (2022-06-19)
617

718
### Added

charset_normalizer/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
import warnings
23
from os import PathLike
34
from os.path import basename, splitext
45
from typing import Any, BinaryIO, List, Optional, Set
@@ -546,6 +547,11 @@ def normalize(
546547
"""
547548
Take a (text-based) file path and try to create another file next to it, this time using UTF-8.
548549
"""
550+
warnings.warn(
551+
"normalize is deprecated and will be removed in 3.0",
552+
DeprecationWarning,
553+
)
554+
549555
results = from_path(
550556
path,
551557
steps,

0 commit comments

Comments
 (0)