1. Mikhail Korobov
  2. django-fab-deploy

Commits

theoden  committed e83e029

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

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

Comments (0)

Files changed (1)

File fab_deploy/vcs/none.py

View file
  • Ignore whitespace
 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