Skip to content

Commit

Permalink
#2: unused Version() method is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Gilmullin committed Jul 13, 2017
1 parent b55cc8d commit 8cbff84
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions tfs/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-


from urllib.parse import quote

import requests
Expand All @@ -7,27 +9,6 @@
from tfs.resources import *


def Version(printing=False):
"""
Return current version of tfs-dohq build. Also, if printing = True then print version.
"""
import pkg_resources # part of standart setuptools

try:
version = pkg_resources.get_distribution('tfs-dohq').version

except Exception:
if printing:
print('unknown')

return 'unknown'

if printing:
print(version)

return version


def batch(iterable, n=1):
"""
Из списка возращает елементы по N штук (в другом списке)
Expand Down

0 comments on commit 8cbff84

Please sign in to comment.