[Pkg-bitcoin-commits] [python-quamash] 101/269: Try to actually fix doctest discovery in _windows.py on non-windows systems.
Jonas Smedegaard
dr at jones.dk
Fri Nov 24 11:26:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository python-quamash.
commit e5a2df3af3c570cd168df3cd23cd73ea012b708b
Author: Mark Harviston <mark.harviston at gmail.com>
Date: Thu Jul 17 19:32:32 2014 -0700
Try to actually fix doctest discovery in _windows.py on non-windows systems.
---
quamash/_windows.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/quamash/_windows.py b/quamash/_windows.py
index b327011..5e11abf 100644
--- a/quamash/_windows.py
+++ b/quamash/_windows.py
@@ -1,14 +1,14 @@
# © 2014 Mark Harviston <mark.harviston at gmail.com>
# © 2014 Arve Knudsen <arve.knudsen at gmail.com>
# BSD License
+import asyncio
try:
import _winapi
+ from asyncio import windows_events
+ from asyncio import _overlapped
except ImportError: # noqa
pass # w/o guarding this import py.test can't gather doctests on platforms w/o _winapi
-import asyncio
-from asyncio import windows_events
-from asyncio import _overlapped
import math
from ._common import with_logger, QtCore
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git
More information about the Pkg-bitcoin-commits
mailing list