changeset 38127:b7e5c53a779e

state: temporary silence pyflakes warning by removing variable assignment The variable 'version' is going to be used in upcoming series where we will be using the version number to read a certain state file. However currently, pyflakes fails because of the variable not being used. Let's remove the assignment temporarily so that buildbots and test-suite is happy until I iterate over remaining part of the series. Differential Revision: https://phab.mercurial-scm.org/D3641
author Pulkit Goyal <7895pulkit@gmail.com>
date Tue, 22 May 2018 00:25:18 +0530
parents bdc4079ceb16
children 1cba497491be
files mercurial/state.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/state.py	Tue May 22 00:22:23 2018 +0530
+++ b/mercurial/state.py	Tue May 22 00:25:18 2018 +0530
@@ -70,7 +70,7 @@
         data in the same format as it was before storing"""
         with self._repo.vfs(self.fname, 'rb') as fp:
             try:
-                version = int(fp.readline())
+                int(fp.readline())
             except ValueError:
                 raise error.ProgrammingError("unknown version of state file"
                                              " found")