Skip to main content
  • Home
  • login
  • Browse the archive

    swh mirror partner logo
swh logo
SoftwareHeritage
Software
Heritage
Mirror
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Raw File
Permalink

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
content badge Iframe embedding
swh:1:cnt:cf219dc59a49fc74b5a31237eabcf3e74630f4b1
try:
    import unittest2 as unittest
except ImportError:
    import unittest

from tlsfuzzer.utils.lists import natural_sort_keys

class TestNaturalSortKeys(unittest.TestCase):
    def test_with_dict(self):
        a = {"a20": "something", "a100": "else"}
        b = sorted(a, key=natural_sort_keys)
        self.assertEqual(["a20", "a100"], b)

ENEA — Copyright (C), ENEA. License: GNU AGPLv3+.
Legal notes  ::  JavaScript license information ::  Web API

back to top