diff --git a/pyx12/x12file.py b/pyx12/x12file.py index e12eb534..daa858ad 100644 --- a/pyx12/x12file.py +++ b/pyx12/x12file.py @@ -305,7 +305,7 @@ def __init__(self, src_file_obj): if src_file_obj == '-': self.fd_in = sys.stdin else: - self.fd_in = open(src_file_obj, 'U', encoding='ascii') + self.fd_in = open(src_file_obj) self.need_to_close = True X12Base.__init__(self) try: