As of commit cb7bb3e, trying to build git-annex on Windows fails with a syntax error, which (once fixed) is replaced by a type error and an undefined name error. All of these can be fixed with this patch.

applied, thanks done --Joey