summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord-kiss <speakupness@gmail.com>2018-01-26 18:19:30 +0200
committerd-kiss <speakupness@gmail.com>2018-01-26 18:19:30 +0200
commit3eb6de3c6d611ca5917e40572a351762da921504 (patch)
tree701710afe655721ab24d0307cb1c94f409aa54ed
parent9a5901b4d6e97ee7834974b22744af26372def75 (diff)
downloadnatsort-3eb6de3c6d611ca5917e40572a351762da921504.tar.gz
Creating a dict with dict comperhension in much faster than casting a list of two-tuples.
-rw-r--r--natsort/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/natsort/__init__.py b/natsort/__init__.py
index 62280a5..db640a2 100644
--- a/natsort/__init__.py
+++ b/natsort/__init__.py
@@ -48,5 +48,5 @@ __all__ = [
# Add the ns keys to this namespace for convenience.
globals().update(
- dict((k, v) for k, v in vars(ns).items() if not k.startswith('_'))
+ {k: v for k, v in vars(ns).items() if not k.startswith('_')}
)