Skip to content

Conversation

@jdufresne
Copy link
Contributor

@jdufresne jdufresne commented Sep 27, 2020

django.utils.datastructures.SortedDict has been unused since
a0569d7.

Can access class variables using self so drop unnecessary type() call.

range() supports passing a first argument larger than the second, in
which case it doesn't yield any values.

>>> list(range(2, 1))
[]

django.utils.datastructures.SortedDict has been unused since
a0569d7.

Can access class variables using self so drop unnecessary type() call.

range() supports passing a first argument larger than the second, in
which case it doesn't yield and values.

    >>> list(range(2, 1))
    []
@matthiask matthiask merged commit 6a00cd7 into django-commons:master Sep 30, 2020
@matthiask
Copy link
Member

Thanks! I added c543358; this should help future readers understand that self._store is a class variable.

@jdufresne jdufresne deleted the simplify-store branch October 2, 2020 09:51
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