Skip to content

Commit

Permalink
Use feature detection rather than version detection for Python 2.7 su…
Browse files Browse the repository at this point in the history
…pport
  • Loading branch information
wbdana committed Jul 20, 2018
1 parent 3667302 commit 2efc691
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# opengraph-io-python ( Python Client 0.1.1 )
# opengraph-io-python ( Python Client 1.0.0 )

[![Build Status](https://travis-ci.org/wbdana/opengraph-io-python.svg?branch=master)](https://travis-ci.org/wbdana/opengraph-io-python)
[![Coverage Status](https://coveralls.io/repos/github/wbdana/opengraph-io-python/badge.svg?branch=master)](https://coveralls.io/github/wbdana/opengraph-io-python?branch=master)
Expand Down
5 changes: 2 additions & 3 deletions opengraphio/opengraphio.py
@@ -1,9 +1,8 @@
import requests
# Handling Python 2/3 quote_plus import
import sys
if sys.version_info[0] > 2:
try:
from urllib.parse import quote_plus
else:
except ImportError:
from urllib import quote_plus

class OpenGraphIO:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@

setup(
name="opengraphio",
version="0.1.1",
version="1.0.0",
author="Will Dana",
author_email="william.b.dana@gmail.com",
description="A Python client for opengraph.io, a website scraper to grab OpenGraph tags or supplement them when they don't exist.",
Expand Down

0 comments on commit 2efc691

Please sign in to comment.