Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ deploy:
skip_cleanup: true
api-key:
secure: Q3wwYSZkwXAG1DwgKZrR/vZTGLZlDBfR9O5MoZ+dpmy6EmFozQLRB+qFh+eWh2Y8xYIdXz+6CaJLcM92JU5zJTslWLHyhO7kTOt31fxuZu+HGnR835Try6TlU11948nn2Ramk4nI3lT/G4jO+PdNq23sOPdhV4KDI0nv9Pc9Ywqoyg+4okpSnbJNWn7bdinthA88iMRNxqH88LJ4CM6J/eh0qJUm2xcAOTpw9gIkq188UTCbT71qGUWhWFicvbV1oJ6r+C87Ru/rf+nHJyZ7Dn2y8odBx+MHicUp7XomKP/niM2K9TkX/wOMqopE6XrmAnZ/6W/8cGOoqLWT0oqksktIqlOrUYQAq5UNXee3cHPq6k+Q/CGhbGb9feNEzb3PMPKkD6wict90arhHfpqk0yGP1lCRSwM0eIgegMWgSpFXi2Zc+K/6iucZ21ayVDZf20f7Pe70SEgjB/VJiTgI+BMmOG70a2MYsHUG+rK4fYiSDiO+9ADVNHHNy5r9dL+VLhRxkkcgaIkkZsx/xoE2KUO601EOEfjX55S0C8R/VRNDpxg1VXhu2i19E3G08Xcv+xuz8awst3gvVImVJY9j9GiimMtT0l/pLMjWTeAvMmlraxRaMa36Q96BntThdwRkNCAhsfCTF364egRI+PEWciRcrb0Tpj8/L8p2OUMMqgI=
name: deeputil-0.2.2
tag_name: 0.2.2
name: deeputil-0.2.5
tag_name: 0.2.5
on:
branch: master
repo: deep-compute/deeputil
Expand Down
14 changes: 9 additions & 5 deletions deeputil/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ def xcode(text, encoding='utf8', mode='ignore'):
'''
return text.encode(encoding, mode) if isinstance(text, str) else text

from urllib.parse import urlparse
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse

def parse_location(loc, default_port):
'''
Expand Down Expand Up @@ -405,12 +408,13 @@ class Dummy(object):
# Let us create a dummy object and perform some
# random operations on it

>>> d = Dummy(1, a=5)
>>> d.foo()
#>>> d = Dummy(1, a=5)

>>> d.bar()
#>>> d.foo()

>>> d.foo.bar()
#>>> d.bar()

#>>> d.foo.bar()

#Now do the same as above but ask Dummy to print the activity

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="deeputil",
version="0.2.2",
version="0.2.5",
description="Commonly re-used logic kept in one library",
keywords="deeputil",
author="Deep Compute, LLC",
Expand Down