parsers: drop Python 2.4 compat in make_file_foldmap
authorSiddharth Agarwal <sid0@fb.com>
Mon, 15 Jun 2015 22:29:29 -0700
changeset 25582 5fa399a0c385
parent 25581 79c75459321e
child 25583 ce64c9ab19f2
parsers: drop Python 2.4 compat in make_file_foldmap
mercurial/parsers.c
--- a/mercurial/parsers.c	Tue Jun 16 14:11:58 2015 -0400
+++ b/mercurial/parsers.c	Mon Jun 15 22:29:29 2015 -0700
@@ -205,7 +205,6 @@
 		goto quit;
 	}
 
-#if PY_VERSION_HEX >= 0x02060000
 	/* _PyDict_NewPresized expects a minused parameter, but it actually
 	   creates a dictionary that's the nearest power of two bigger than the
 	   parameter. For example, with the initial minused = 1000, the
@@ -215,10 +214,6 @@
 	   anyway. So create a dictionary that's 3/2 the size. Also add some
 	   more to deal with additions outside this function. */
 	file_foldmap = _PyDict_NewPresized((PyDict_Size(dmap) / 5) * 8);
-#else
-	file_foldmap = PyDict_New();
-#endif
-
 	if (file_foldmap == NULL)
 		goto quit;