Skip to content

Commit

Permalink
Merge branch 'release/0.1.0-4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Otetz committed May 29, 2017
2 parents 3fcf8ce + b5a7202 commit aaf8716
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# flake8: noqa
from typing import Dict

import os
import sys
Expand Down Expand Up @@ -49,7 +48,7 @@ def run_tests(self):
os.system('cd docs/ && make html && cd ..')
sys.exit()

about = {} # type: Dict[str, str]
about = {} # type: dict
exec(get_file_content(os.path.join('smsc', '__version__.py')), about)

setup(
Expand Down
3 changes: 1 addition & 2 deletions smsc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
:license: MIT, see LICENSE for more details.
"""

import logging # noqa: T005
import sys # noqa: T005

# noinspection PyUnresolvedReferences
Expand All @@ -33,8 +34,6 @@
from .exceptions import SMSCException, SendError, GetCostError, GetBalanceError, GetStatusError # noqa: F401

# Set default logging handler to avoid "No handler found" warnings.
import logging # noqa: T005

try: # Python 2.7+
if sys.version_info >= (2, 7):
from logging import NullHandler
Expand Down
2 changes: 1 addition & 1 deletion smsc/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class SMSMessage(Message):

def __init__(self, text: str, **kwargs: dict) -> None: # noqa: D102
assert len(text) <= 800
super().__init__(text, **kwargs)
super().__init__(text, msg_format=None, **kwargs)


class FlashMessage(Message):
Expand Down

0 comments on commit aaf8716

Please sign in to comment.