Skip to content

Commit

Permalink
Merge branch 'hotfix/relative-imports'
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo O Vieira committed Apr 11, 2016
2 parents ecfb433 + 2964d9e commit cb11cc1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Changelog
=========

1.4.4 (2016-04-11)
------------------

- Bugfix

1.4.3 (2015-10-15)
------------------

Expand Down
2 changes: 1 addition & 1 deletion noipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""

__title__ = "noipy"
__version_info__ = ('1', '4', '3')
__version_info__ = ('1', '4', '4')
__version__ = ".".join(__version_info__)
__author__ = "Pablo O Vieira"
__email__ = "[email protected]"
Expand Down
14 changes: 7 additions & 7 deletions noipy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from noipy import utils


from . import dnsupdater
from . import authinfo
from . import __version__
from noipy import dnsupdater
from noipy import authinfo
from noipy import __version__


EXECUTION_RESULT_OK = 0
Expand Down Expand Up @@ -165,12 +165,12 @@ def main():
parser = create_parser()
args = parser.parse_args()

result, status_message = execute_update(args)
print(status_message)
if result != EXECUTION_RESULT_OK:
result = execute_update(args)
print(result.get('process_message'))
if result.get('exec_result') != EXECUTION_RESULT_OK:
parser.format_usage()

sys.exit(result)
sys.exit(result.get('exec_result'))

if __name__ == '__main__':
main()
5 changes: 2 additions & 3 deletions test/test_noipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@
# Copyright (c) 2013 Pablo O Vieira (povieira)
# See README.rst and LICENSE for details.

import unittest
import getpass
import os
import re
import shutil
import getpass
import unittest

from noipy import authinfo
from noipy import dnsupdater
from noipy import main
from noipy import utils


VALID_IP_REGEX = r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25" \
r"[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4]" \
r"[0-9]|25[0-5])$"
Expand Down

0 comments on commit cb11cc1

Please sign in to comment.