Patchwork D3641: state: temporary silence pyflakes warning by removing variable assignment

login
register
mail settings
Submitter phabricator
Date May 22, 2018, 12:12 p.m.
Message ID <0b336ec626fdea37e6551252689e675d@localhost.localdomain>
Download mbox | patch
Permalink /patch/31813/
State Not Applicable
Headers show

Comments

phabricator - May 22, 2018, 12:12 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb7e5c53a779e: state: temporary silence pyflakes warning by removing variable assignment (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3641?vs=8863&id=8870

REVISION DETAIL
  https://phab.mercurial-scm.org/D3641

AFFECTED FILES
  mercurial/state.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/state.py b/mercurial/state.py
--- a/mercurial/state.py
+++ b/mercurial/state.py
@@ -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")