Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: un33k/python-slugify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.1.0
Choose a base ref
...
head repository: un33k/python-slugify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.1.1
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Feb 26, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0bf1b87 View commit details
Showing with 6 additions and 4 deletions.
  1. +4 −0 CHANGELOG.md
  2. +1 −1 slugify/__version__.py
  3. +1 −3 slugify/slugify.py
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 6.1.1

- Remove type hinting (temporarily)

## 6.1.0

- Add `allow_unicode` flag to allow unicode characters in the slug
2 changes: 1 addition & 1 deletion slugify/__version__.py
Original file line number Diff line number Diff line change
@@ -5,4 +5,4 @@
__url__ = 'https://github.com/un33k/python-slugify'
__license__ = 'MIT'
__copyright__ = 'Copyright 2022 Val Neekman @ Neekware Inc.'
__version__ = '6.1.0'
__version__ = '6.1.1'
4 changes: 1 addition & 3 deletions slugify/slugify.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import re
import sys
import typing
import unicodedata
from html.entities import name2codepoint

@@ -67,8 +66,7 @@ def smart_truncate(string, max_length=0, word_boundary=False, separator=' ', sav

def slugify(text, entities=True, decimal=True, hexadecimal=True, max_length=0, word_boundary=False,
separator=DEFAULT_SEPARATOR, save_order=False, stopwords=(), regex_pattern=None, lowercase=True,
replacements: typing.Iterable[typing.Iterable[str]] = (),
allow_unicode=False):
replacements=(), allow_unicode=False):
"""
Make a slug from the given text.
:param text (str): initial text