diff --git a/pysitemap/crawler.py b/pysitemap/crawler.py index 049d141..09e5dcf 100644 --- a/pysitemap/crawler.py +++ b/pysitemap/crawler.py @@ -1,6 +1,3 @@ -# ~*~ coding: utf-8 ~*~ -__author__ = 'Kamo Petrosyan' - import urllib from bs4 import BeautifulSoup import urlparse @@ -9,13 +6,13 @@ import pickle import re try: import sys - import gevent - from gevent import monkey, pool - monkey.patch_all() if 'threading' in sys.modules: del sys.modules['threading'] - print('threading module loaded before patching!\n') + print('threading module loaded before patching!') print('threading module deleted from sys.modules!\n') + import gevent + from gevent import monkey, pool + monkey.patch_all() gevent_installed = True except: print("Gevent does not installed. Parsing process will be slower.") diff --git a/setup.py b/setup.py index 642d82c..c94073b 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( version=get_version( major=0, minor=3, - build=6, + build=7, ), packages=find_packages(exclude=EXCLUDE_FROM_PACKAGES), include_package_data=True,