# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-05-21 18:55:18 # Node ID b7e5c53a779eff5447d1277e0b8d88defe0e3b93 # Parent bdc4079ceb163ac5515363f494f661677e42da51 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 diff --git a/mercurial/state.py b/mercurial/state.py --- a/mercurial/state.py +++ b/mercurial/state.py @@ -70,7 +70,7 @@ class cmdstate(object): 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")