source: ralphm-patches/py3-iwokkel.patch

Last change on this file was 78:361e2111a663, checked in by Ralph Meijer <ralphm@…>, 6 years ago

Start port to Python 3.

File size: 1.1 KB
RevLine 
[78]1# HG changeset patch
2# Parent  14d563f20f98e4555804c911fbd129ec1a130ff6
3
4diff --git a/wokkel/iwokkel.py b/wokkel/iwokkel.py
5--- a/wokkel/iwokkel.py
6+++ b/wokkel/iwokkel.py
7@@ -7,9 +7,7 @@
8 Wokkel interfaces.
9 """
10 
11-__all__ = ['IXMPPHandler', 'IXMPPHandlerCollection',
12-           'IPubSubClient', 'IPubSubService', 'IPubSubResource',
13-           'IMUCClient', 'IMUCStatuses']
14+from __future__ import division, absolute_import
15 
16 from zope.interface import Interface
17 from twisted.python.deprecate import deprecatedModuleAttribute
18@@ -982,3 +980,9 @@
19         """
20         Return the number of status conditions.
21         """
22+
23+
24+
25+__all__ = ['IXMPPHandler', 'IXMPPHandlerCollection',
26+           'IPubSubClient', 'IPubSubService', 'IPubSubResource',
27+           'IMUCClient', 'IMUCStatuses']
28diff --git a/wokkel/test/test_iwokkel.py b/wokkel/test/test_iwokkel.py
29--- a/wokkel/test/test_iwokkel.py
30+++ b/wokkel/test/test_iwokkel.py
31@@ -5,6 +5,8 @@
32 Tests for L{wokkel.iwokkel}
33 """
34 
35+from __future__ import division, absolute_import
36+
37 from twisted.trial import unittest
38 
39 class DeprecationTest(unittest.TestCase):
Note: See TracBrowser for help on using the repository browser.