commit | d9b6308ee917b15ad7d6eee1bffbce40b6a05107 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Fri Aug 16 17:16:11 2013 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Fri Aug 16 17:16:11 2013 -0400 |
tree | 00c09b1b28d5145bc34f7edf6bbf7447396cc7f4 | |
parent | a9bfec18ad68aac4abe2984146b8cc7c37e5b9d5 [diff] [blame] |
Work around some Jython versions
diff --git a/pyotlss.py b/pyotlss.py index addd73c..5cbe0c2 100755 --- a/pyotlss.py +++ b/pyotlss.py
@@ -1836,10 +1836,13 @@ # Cleanup module space l = locals() -for k,v in l.items(): - if v == None: - del l[k] -del k, v, l +# Some versions of Jython don't like locals().items() +if isinstance(l, dict): + for k,v in l.items(): + if v == None: + del l[k] + del k, v +del l def main(args=None):