theoden  committed e83e029

* reading .hgignore with at vcs.none

  • Participants
  • Parent commits 9f24a57
  • Branches multiple web-servers

Comments (0)

Files changed (1)

File fab_deploy/vcs/

 import os.path
 import tempfile
 from datetime import datetime
+import codecs
+import sys
 from fabric.api import run, local, env, put, cd, warn
 from taskset import TaskSet, task_method
         """ Extracts list of exclusion patterns from .hgignore file. """
         excluded = []
-            for str in open('.hgignore'):
+            for str in'.hgignore', 'rb', sys.getdefaultencoding()):
                 str = str.strip()
                 if str.startswith(('#', 'syntax: glob')) or str=='':