Ignore:
Timestamp:
Apr 1, 2013, 5:57:03 PM (7 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Make `from __future__ import unicode_literals` work for all modules.

In some cases this required some changes which will also benefit
Python 3 compatibility.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mock_ftplib.py

    r1205 r1224  
    1 # Copyright (C) 2003-2012, Stefan Schwarzer <sschwarzer@sschwarzer.net>
     1# Copyright (C) 2003-2013, Stefan Schwarzer <sschwarzer@sschwarzer.net>
    22# See the file LICENSE for licensing terms.
    33
     
    3636    be queried for their contents after they have been closed.
    3737    """
    38     def __init__(self, path, content=b''):
     38    def __init__(self, path, content=b""):
    3939        global mock_files
    4040        mock_files[path] = self
     
    5858    `MockSession.transfercmd`.
    5959    """
    60     def __init__(self, path, mock_file_content=''):
     60    def __init__(self, path, mock_file_content=b""):
    6161        if DEBUG:
    6262            print("File content: *{0}*".format(mock_file_content))
Note: See TracChangeset for help on using the changeset viewer.