pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-robobrowser robobrowser: Fix patch-robobrowser_...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee3d855e2c32
branches:  trunk
changeset: 386247:ee3d855e2c32
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Oct 12 23:17:34 2018 +0000

description:
robobrowser: Fix patch-robobrowser_helpers.py for non-3.7 Python-s

diffstat:

 www/py-robobrowser/distinfo                             |  4 ++--
 www/py-robobrowser/patches/patch-robobrowser_helpers.py |  9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 04296e322a40 -r ee3d855e2c32 www/py-robobrowser/distinfo
--- a/www/py-robobrowser/distinfo       Fri Oct 12 23:08:10 2018 +0000
+++ b/www/py-robobrowser/distinfo       Fri Oct 12 23:17:34 2018 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2018/10/12 23:08:10 leot Exp $
+$NetBSD: distinfo,v 1.3 2018/10/12 23:17:34 leot Exp $
 
 SHA1 (robobrowser-0.5.3.tar.gz) = 82e6e6efa161d0d9bf73677332ad97981d760d9a
 RMD160 (robobrowser-0.5.3.tar.gz) = d2192d22f67b09cd07730784123f1a92ecccd6fa
 SHA512 (robobrowser-0.5.3.tar.gz) = d26d351d65fc963459b49ff277c2c412165ee70b75f17581f61991ef6000cdf574648b72e65ef778425f7023a14109f02b1a0e53b67d9ac793941d0382060f54
 Size (robobrowser-0.5.3.tar.gz) = 22040 bytes
-SHA1 (patch-robobrowser_helpers.py) = 8abcbb33dbc487698a0c5717ef1e1e4079490457
+SHA1 (patch-robobrowser_helpers.py) = ed7c47239b89261ec39735b2bc2e7b4b208b1dda
diff -r 04296e322a40 -r ee3d855e2c32 www/py-robobrowser/patches/patch-robobrowser_helpers.py
--- a/www/py-robobrowser/patches/patch-robobrowser_helpers.py   Fri Oct 12 23:08:10 2018 +0000
+++ b/www/py-robobrowser/patches/patch-robobrowser_helpers.py   Fri Oct 12 23:17:34 2018 +0000
@@ -1,14 +1,17 @@
-$NetBSD: patch-robobrowser_helpers.py,v 1.1 2018/10/12 23:08:10 leot Exp $
+$NetBSD: patch-robobrowser_helpers.py,v 1.2 2018/10/12 23:17:34 leot Exp $
 
 Add support for Python 3.7.
 
 --- robobrowser/helpers.py.orig        2015-06-07 19:27:41.000000000 +0000
 +++ robobrowser/helpers.py
-@@ -3,6 +3,7 @@ Miscellaneous helper functions
+@@ -3,6 +3,10 @@ Miscellaneous helper functions
  """
  
  import re
-+re._pattern_type = getattr(re, '_pattern_type', re.Pattern)
++try:
++    re._pattern_type
++except AttributeError:
++    re._pattern_type = re.Pattern
  
  from bs4 import BeautifulSoup
  from bs4.element import Tag



Home | Main Index | Thread Index | Old Index