Permalink
Browse files

Use a match limit of 64k rather than sys.maxint.

For Python 3 source compatibility
  • Loading branch information...
1 parent a49b35e commit 0964219b25d83e8b029e881a3b281ce03d05fffa @daviddrysdale committed Nov 26, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 python/phonenumbers/phonenumbermatcher.py
@@ -16,7 +16,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-import sys
import re
# Extra regexp function; see README
@@ -353,7 +352,7 @@ class PhoneNumberMatcher(object):
_DONE = 2
def __init__(self, text, region,
- leniency=Leniency.VALID, max_tries=sys.maxint):
+ leniency=Leniency.VALID, max_tries=65535):
"""Creates a new instance.
Arguments:

0 comments on commit 0964219

Please sign in to comment.