Browse Source

0.3.7

pysitemap-python-2.7
Kamo Petrosyan 9 years ago
parent
commit
3c70e32b10
2 changed files with 5 additions and 8 deletions
  1. +4
    -7
      pysitemap/crawler.py
  2. +1
    -1
      setup.py

+ 4
- 7
pysitemap/crawler.py View File

@ -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.")


+ 1
- 1
setup.py View File

@ -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,


Loading…
Cancel
Save