diff options
author | David Malcolm <dmalcolm@redhat.com> | 2010-03-05 19:06:29 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2010-03-05 19:06:29 -0500 |
commit | e4c495a8b6d9727de99b35bddf70f2c942e7f8b9 (patch) | |
tree | 0b41afa08d135b80f55195eb9cefb4a8bd643fa7 /lib2to3c/int-to-long.cocci | |
parent | 234a10d5bc133f9963db58fd4c08715fe43c2b94 (diff) | |
download | 2to3c-e4c495a8b6d9727de99b35bddf70f2c942e7f8b9.tar.gz 2to3c-e4c495a8b6d9727de99b35bddf70f2c942e7f8b9.tar.xz 2to3c-e4c495a8b6d9727de99b35bddf70f2c942e7f8b9.zip |
Diffstat (limited to 'lib2to3c/int-to-long.cocci')
-rw-r--r-- | lib2to3c/int-to-long.cocci | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/lib2to3c/int-to-long.cocci b/lib2to3c/int-to-long.cocci new file mode 100644 index 0000000..110d97d --- /dev/null +++ b/lib2to3c/int-to-long.cocci @@ -0,0 +1,82 @@ +@@ +expression E1; +@@ +-PyInt_AsLong(E1) ++PyLong_AsLong(E1) + +@@ +expression E1; +@@ +-PyInt_Check(E1) ++PyLong_Check(E1) + +@@ +expression E1, E2, E3; +@@ +-PyInt_FromString(E1, E2, E3) ++PyLong_FromString(E1, E2, E3) + +@@ +expression E1, E2, E3; +@@ +-PyInt_FromUnicode(E1, E2, E3) ++PyLong_FromUnicode(E1, E2, E3) + +@@ +expression E1; +@@ +-PyInt_FromLong(E1) ++PyLong_FromLong(E1) + +@@ +expression E1; +@@ +-PyInt_FromSize_t(E1) ++PyLong_FromSize_t(E1) + +@@ +expression E1; +@@ +-PyInt_FromSsize_t(E1) ++PyLong_FromSsize_t(E1) + +@@ +expression E1; +@@ +-PyInt_AsLong(E1) ++PyLong_AsLong(E1) + +@@ +expression E1; +@@ +-PyInt_AsSsize_t(E1) ++PyLong_AsSsize_t(E1) + +@@ +expression E1; +@@ +-PyInt_AsUnsignedLongMask(E1) ++PyLong_AsUnsignedLongMask(E1) + +@@ +expression E1; +@@ +-PyInt_AsUnsignedLongLongMask(E1) ++PyLong_AsUnsignedLongLongMask(E1) + +@@ +expression E1; +@@ +-PyInt_AS_LONG(E1) ++PyLong_AS_LONG(E1) + +@@ +expression E1; +@@ +-PyNumber_Int(E1) ++PyNumber_Long(E1) + +@@ +@@ +-PyInt_Type ++PyLong_Type
\ No newline at end of file |