Commits

theoden committed e83e029

* reading .hgignore with codecs.open at vcs.none

Comments (0)

Files changed (1)

fab_deploy/vcs/none.py

 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 = []
         try:
-            for str in open('.hgignore'):
+            for str in codecs.open('.hgignore', 'rb', sys.getdefaultencoding()):
                 str = str.strip()
                 if str.startswith(('#', 'syntax: glob')) or str=='':
                     continue