Skip to content

Commit e8d7030

Browse files
committed
return python-requests user_agent.
1 parent bbe42ec commit e8d7030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frag2text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
__author__ = "Steve @siznax"
1616
__date__ = "Feb 2015"
1717
__license__ = "MIT"
18-
__version__ = '0.0.5'
18+
__version__ = '0.0.6'
1919

2020

2121
class Frag2Text:
@@ -26,7 +26,7 @@ def __init__(self, verbose=False):
2626

2727
def user_agent():
2828
"""return user-agent for HTTP requests."""
29-
pass
29+
return "python-requests/" + requests.__version__
3030

3131
def read(self, _file):
3232
"""return local file contents as endpoint."""

0 commit comments

Comments
 (0)