Skip to content

Commit

Permalink
Fix various Windows issues [JackDandy]
Browse files Browse the repository at this point in the history
  • Loading branch information
madcowfred committed Apr 1, 2012
1 parent 71c84cf commit ca2f9f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions newsmangler/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
NM_VERSION = '0.1.0git'

import os
import sys

from ConfigParser import ConfigParser

Expand Down
3 changes: 3 additions & 0 deletions newsmangler/fakepoll.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
select.POLLIN = 1
select.POLLOUT = 2
select.POLLNVAL = 4
select.POLLPRI = 8
select.POLLERR = 16
select.POLLHUP = 32

# ---------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion newsmangler/postmangler.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, conf, debug=False):
asyncore.poller = select.poll()
self.logger.info('Using poll() for sockets')
except AttributeError:
from classes.FakePoll import FakePoll
from newsmangler.fakepoll import FakePoll
asyncore.poller = FakePoll()
self.logger.info('Using FakePoll() for sockets')

Expand Down

0 comments on commit ca2f9f2

Please sign in to comment.