minor: fix copyright date

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-05-20 18:20:07 +02:00
parent c38bd24c80
commit bb1160f0ee

View File

@ -1,5 +1,5 @@
# IMAP server support # IMAP server support
# Copyright (C) 2002 - 2011 John Goerzen & contributors # Copyright (C) 2002 - 2016 John Goerzen & contributors
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
@ -29,13 +29,12 @@ import errno
from sys import exc_info from sys import exc_info
from socket import gaierror from socket import gaierror
from ssl import SSLError, cert_time_to_seconds from ssl import SSLError, cert_time_to_seconds
import six
from offlineimap import imaplibutil, imaputil, threadutil, OfflineImapError from offlineimap import imaplibutil, imaputil, threadutil, OfflineImapError
import offlineimap.accounts import offlineimap.accounts
from offlineimap.ui import getglobalui from offlineimap.ui import getglobalui
import six
try: try:
# do we have a recent pykerberos? # do we have a recent pykerberos?
@ -46,6 +45,7 @@ try:
except ImportError: except ImportError:
pass pass
class IMAPServer(object): class IMAPServer(object):
"""Initializes all variables from an IMAPRepository() instance """Initializes all variables from an IMAPRepository() instance
@ -181,7 +181,9 @@ class IMAPServer(object):
:param drop_conn: If True, the connection will be released and :param drop_conn: If True, the connection will be released and
not be reused. This can be used to indicate broken connections.""" not be reused. This can be used to indicate broken connections."""
if connection is None: return #noop on bad connection if connection is None:
return # Noop on bad connection.
self.connectionlock.acquire() self.connectionlock.acquire()
self.assignedconnections.remove(connection) self.assignedconnections.remove(connection)
# Don't reuse broken connections # Don't reuse broken connections