[Python-checkins] Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)

rhettinger webhook-mailer at python.org
Wed May 5 00:39:18 EDT 2021


https://github.com/python/cpython/commit/b19ec7f9df5897755dae14e6f4c7fef2d3bb0406
commit: b19ec7f9df5897755dae14e6f4c7fef2d3bb0406
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2021-05-04T21:39:09-07:00
summary:

Eliminate duplicated assignment in _randommodule.c (GH-25904) (GH-25909)

files:
M Modules/_randommodule.c

diff --git a/Modules/_randommodule.c b/Modules/_randommodule.c
index cae49a009cbcc8..0137e34da650a1 100644
--- a/Modules/_randommodule.c
+++ b/Modules/_randommodule.c
@@ -597,7 +597,7 @@ _random_exec(PyObject *module)
     }
 
     /* Look up and save int.__abs__, which is needed in random_seed(). */
-    PyObject *longval = longval = PyLong_FromLong(0);
+    PyObject *longval = PyLong_FromLong(0);
     if (longval == NULL) {
         return -1;
     }



More information about the Python-checkins mailing list