diff options
Diffstat (limited to 'pym/gentoolkit/eclean/exclude.py')
| -rw-r--r-- | pym/gentoolkit/eclean/exclude.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/gentoolkit/eclean/exclude.py b/pym/gentoolkit/eclean/exclude.py index a6422d0..5a13186 100644 --- a/pym/gentoolkit/eclean/exclude.py +++ b/pym/gentoolkit/eclean/exclude.py @@ -11,6 +11,7 @@ import os import sys import re import portage +from portage import _encodings, _unicode_decode, _unicode_encode from gentoolkit.pprinter import warn @@ -81,7 +82,8 @@ def parseExcludeFile(filepath, output): } output("Parsing Exclude file: " + filepath) try: - file_ = open(filepath,"r") + file_ = open(_unicode_encode(filepath), + encoding=_encodings['fs'], mode="r") except IOError: raise ParseExcludeFileException("Could not open exclusion file: " + filepath) |
