Skip to content

Commit 77928ce

Browse files
committed
feat: rename httoop.header.range to ranges to avoid builtin name clash
1 parent 6cd9a84 commit 77928ce

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

httoop/header/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,13 @@
1010

1111
# TODO: add a MAXIMUM of 500 headers?
1212

13-
from httoop.header import (
14-
auth,
15-
cache,
16-
conditional,
17-
messaging,
18-
range, # pylint: disable=W0622
19-
security,
20-
)
13+
from httoop.header import auth, cache, conditional, messaging, ranges, security
2114
from httoop.header.element import HEADER, HeaderElement
2215
from httoop.header.headers import Headers
2316
from httoop.header.messaging import Server, UserAgent
2417

2518

26-
__all__ = ['Headers', 'Server', 'UserAgent', 'auth', 'cache', 'conditional', 'messaging', 'range', 'security', 'HeaderElement']
19+
__all__ = ['Headers', 'Server', 'UserAgent', 'auth', 'cache', 'conditional', 'messaging', 'ranges', 'security', 'HeaderElement']
2720
for member in HEADER.values():
2821
name = member.__name__
2922
__all__.append(name)

0 commit comments

Comments
 (0)