diff options
author | Seth M Morton <seth.m.morton@gmail.com> | 2016-06-04 13:09:19 -0700 |
---|---|---|
committer | Seth M Morton <seth.m.morton@gmail.com> | 2016-06-04 13:09:19 -0700 |
commit | 314cc1240f793e3c1001351e25278a88da174887 (patch) | |
tree | 99400080251311ad156651342f57621aa7b4e963 | |
parent | a2a4f279440cf37d0160f97e5c05b1a233e50daf (diff) | |
download | natsort-algorithm-toplevel-namespace.tar.gz |
Added ns keys to top-level namespace.algorithm-toplevel-namespace
This is for the benefit of those importing natsort with
"import natsort as ns".
-rw-r--r-- | natsort/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/natsort/__init__.py b/natsort/__init__.py index e4c9daf..62280a5 100644 --- a/natsort/__init__.py +++ b/natsort/__init__.py @@ -45,3 +45,8 @@ __all__ = [ 'ns', 'chain_functions', ] + +# 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('_')) +) |