diff options
author | d-kiss <speakupness@gmail.com> | 2018-01-26 18:19:30 +0200 |
---|---|---|
committer | d-kiss <speakupness@gmail.com> | 2018-01-26 18:19:30 +0200 |
commit | 3eb6de3c6d611ca5917e40572a351762da921504 (patch) | |
tree | 701710afe655721ab24d0307cb1c94f409aa54ed | |
parent | 9a5901b4d6e97ee7834974b22744af26372def75 (diff) | |
download | natsort-3eb6de3c6d611ca5917e40572a351762da921504.tar.gz |
Creating a dict with dict comperhension in much faster than casting a list of two-tuples.
-rw-r--r-- | natsort/__init__.py | 2 |
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('_')} ) |