Skip to content

Commit

Permalink
The Queue module moved to queue in Python 3.
Browse files Browse the repository at this point in the history
Use six.moves.queue to import the right module regardless.
  • Loading branch information
thanatos committed Feb 27, 2016
1 parent edf6d2d commit 74a31c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions letsencrypt/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import collections
import logging
import os
import Queue
import sys
import textwrap

from six.moves import queue # pylint: disable=import-error
import zope.interface

from letsencrypt import interfaces
Expand All @@ -21,7 +21,7 @@
class Reporter(object):
"""Collects and displays information to the user.
:ivar `Queue.PriorityQueue` messages: Messages to be displayed to
:ivar `queue.PriorityQueue` messages: Messages to be displayed to
the user.
"""
Expand All @@ -36,7 +36,7 @@ class Reporter(object):
_msg_type = collections.namedtuple('ReporterMsg', 'priority text on_crash')

def __init__(self):
self.messages = Queue.PriorityQueue()
self.messages = queue.PriorityQueue()

def add_message(self, msg, priority, on_crash=True):
"""Adds msg to the list of messages to be printed.
Expand Down

0 comments on commit 74a31c7

Please sign in to comment.