Patchwork [2,of,3,STABLE] win32: add missing definition of _ERROR_NO_MORE_FILES caught by pyflakes

login
register
mail settings
Submitter Yuya Nishihara
Date April 29, 2014, 4:56 a.m.
Message ID <1e4817bac55db80b468a.1398747400@gimlet>
Download mbox | patch
Permalink /patch/4456/
State Accepted
Commit 44c6f65722d700be2bc95c1010c35fbdada56f3f
Headers show

Comments

Yuya Nishihara - April 29, 2014, 4:56 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1398742550 -32400
#      Tue Apr 29 12:35:50 2014 +0900
# Branch stable
# Node ID 1e4817bac55db80b468a2a6651df84dec6b574e9
# Parent  0b3e8b75ec319048a8ae6ade1340124598cd573d
win32: add missing definition of _ERROR_NO_MORE_FILES caught by pyflakes

Patch

diff --git a/mercurial/win32.py b/mercurial/win32.py
--- a/mercurial/win32.py
+++ b/mercurial/win32.py
@@ -24,6 +24,7 @@  import ctypes, errno, os, subprocess, ra
 
 # GetLastError
 _ERROR_SUCCESS = 0
+_ERROR_NO_MORE_FILES = 18
 _ERROR_SHARING_VIOLATION = 32
 _ERROR_INVALID_PARAMETER = 87
 _ERROR_INSUFFICIENT_BUFFER = 122