summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 21:01:51 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-05-06 21:01:51 (GMT)
commitbc459bb484a48ae6d04ea0a57e8924e7fee2e628 (patch)
treee8831c13263c1bc86fc2c56c6a575a85cc0c6522 /Lib
parentf55b329edc911dde495abfcfe0b052040d101cc5 (diff)
downloadcpython-bc459bb484a48ae6d04ea0a57e8924e7fee2e628.zip
cpython-bc459bb484a48ae6d04ea0a57e8924e7fee2e628.tar.gz
cpython-bc459bb484a48ae6d04ea0a57e8924e7fee2e628.tar.bz2
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lzma.py2
-rw-r--r--Lib/test/test_lzma.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/Lib/lzma.py b/Lib/lzma.py
index 5adf51f..1c101f7 100644
--- a/Lib/lzma.py
+++ b/Lib/lzma.py
@@ -18,7 +18,7 @@ __all__ = [
"MODE_FAST", "MODE_NORMAL", "PRESET_DEFAULT", "PRESET_EXTREME",
"LZMACompressor", "LZMADecompressor", "LZMAFile", "LZMAError",
- "compress", "decompress", "check_is_supported",
+ "compress", "decompress", "is_check_supported",
"encode_filter_properties", "decode_filter_properties",
]
diff --git a/Lib/test/test_lzma.py b/Lib/test/test_lzma.py
index cc08bad..97523c1 100644
--- a/Lib/test/test_lzma.py
+++ b/Lib/test/test_lzma.py
@@ -935,14 +935,14 @@ class MiscellaneousTestCase(unittest.TestCase):
def test_is_check_supported(self):
# CHECK_NONE and CHECK_CRC32 should always be supported,
# regardless of the options liblzma was compiled with.
- self.assertTrue(lzma.check_is_supported(lzma.CHECK_NONE))
- self.assertTrue(lzma.check_is_supported(lzma.CHECK_CRC32))
+ self.assertTrue(lzma.is_check_supported(lzma.CHECK_NONE))
+ self.assertTrue(lzma.is_check_supported(lzma.CHECK_CRC32))
# The .xz format spec cannot store check IDs above this value.
- self.assertFalse(lzma.check_is_supported(lzma.CHECK_ID_MAX + 1))
+ self.assertFalse(lzma.is_check_supported(lzma.CHECK_ID_MAX + 1))
# This value should not be a valid check ID.
- self.assertFalse(lzma.check_is_supported(lzma.CHECK_UNKNOWN))
+ self.assertFalse(lzma.is_check_supported(lzma.CHECK_UNKNOWN))
def test_encode_filter_properties(self):
with self.assertRaises(TypeError):