Hello community,
here is the log from the commit of package python-pywbem for openSUSE:Factory
checked in at Fri Jan 9 01:53:20 CET 2009.
--------
--- python-pywbem/python-pywbem.changes 2008-10-24 08:18:55.000000000 +0200
+++ /mounts/work_src_done/STABLE/python-pywbem/python-pywbem.changes 2008-12-22 22:04:56.000000000 +0100
@@ -1,0 +2,5 @@
+Fri Dec 12 10:10:29 MST 2008 - bwhiteley@suse.de
+
+- update to 0.7.0 official release.
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
pywbem-0.6.20081023.1.tar.gz
New:
----
pywbem-0.7.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pywbem.spec ++++++
--- /var/tmp/diff_new_pack.R21594/_old 2009-01-09 01:52:10.000000000 +0100
+++ /var/tmp/diff_new_pack.R21594/_new 2009-01-09 01:52:10.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pywbem (Version 0.7)
#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,12 +17,12 @@
# norootforbuild
-%define srcversion 0.6.20081023.1
+%define srcversion 0.7.0
Name: python-pywbem
BuildRequires: python-devel python-xml
Version: 0.7
-Release: 5
+Release: 6
Group: System/Management
Summary: Python module for making CIM operation calls using the WBEM protocol
License: LGPL v2.1 or later
@@ -69,6 +69,8 @@
%doc README
%changelog
+* Fri Dec 12 2008 bwhiteley@suse.de
+- update to 0.7.0 official release.
* Thu Oct 23 2008 bwhiteley@suse.de
- update to latest svn
- symlink new wbemcli utility to /usr/bin/
++++++ pywbem-0.6.20081023.1.tar.gz -> pywbem-0.7.0.tar.gz ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_constants.py new/pywbem-0.7.0/cim_constants.py
--- old/pywbem-0.6.20081023.1/cim_constants.py 2007-12-03 01:49:49.000000000 +0100
+++ new/pywbem-0.7.0/cim_constants.py 2008-10-30 17:30:54.000000000 +0100
@@ -4,7 +4,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_http.py new/pywbem-0.7.0/cim_http.py
--- old/pywbem-0.6.20081023.1/cim_http.py 2008-05-29 00:02:00.000000000 +0200
+++ new/pywbem-0.7.0/cim_http.py 2008-11-06 02:01:51.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_obj.py new/pywbem-0.7.0/cim_obj.py
--- old/pywbem-0.6.20081023.1/cim_obj.py 2008-10-16 07:26:53.000000000 +0200
+++ new/pywbem-0.7.0/cim_obj.py 2008-10-30 17:30:54.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_operations.py new/pywbem-0.7.0/cim_operations.py
--- old/pywbem-0.6.20081023.1/cim_operations.py 2008-09-14 05:16:50.000000000 +0200
+++ new/pywbem-0.7.0/cim_operations.py 2008-12-12 18:40:22.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -930,13 +930,12 @@
IncludeClassOrigin=False)
return False
-def PegasusUDSConnection(creds = None):
- return WBEMConnection('/var/run/tog-pegasus/cimxml.socket', creds)
+def PegasusUDSConnection(creds = None, **kwargs):
+ return WBEMConnection('/var/run/tog-pegasus/cimxml.socket', creds, **kwargs)
-def SFCBUDSConnection(creds = None):
- return WBEMConnection('/tmp/sfcbHttpSocket', creds)
-
-def OpenWBEMUDSConnection(creds = None):
- return WBEMConnection('/tmp/OW@LCL@APIIPC_72859_Xq47Bf_P9r761-5_J-7_Q',
- creds)
+def SFCBUDSConnection(creds = None, **kwargs):
+ return WBEMConnection('/tmp/sfcbHttpSocket', creds, **kwargs)
+def OpenWBEMUDSConnection(creds = None, **kwargs):
+ return WBEMConnection('/tmp/OW@LCL@APIIPC_72859_Xq47Bf_P9r761-5_J-7_Q',
+ creds, **kwargs)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_provider2.py new/pywbem-0.7.0/cim_provider2.py
--- old/pywbem-0.6.20081023.1/cim_provider2.py 2008-10-06 22:58:14.000000000 +0200
+++ new/pywbem-0.7.0/cim_provider2.py 2008-10-30 17:30:54.000000000 +0100
@@ -4,7 +4,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_provider.py new/pywbem-0.7.0/cim_provider.py
--- old/pywbem-0.6.20081023.1/cim_provider.py 2008-09-14 05:12:57.000000000 +0200
+++ new/pywbem-0.7.0/cim_provider.py 2008-10-30 17:30:54.000000000 +0100
@@ -4,7 +4,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_types.py new/pywbem-0.7.0/cim_types.py
--- old/pywbem-0.6.20081023.1/cim_types.py 2008-07-17 21:47:20.000000000 +0200
+++ new/pywbem-0.7.0/cim_types.py 2008-11-04 22:19:56.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -177,64 +177,42 @@
# CIM integer types
class CIMInt(CIMType, long):
- def __init__(self, arg, base):
- int.__init__(self, arg, base)
+ pass
class Uint8(CIMInt):
cimtype = 'uint8'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Sint8(CIMInt):
cimtype = 'sint8'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Uint16(CIMInt):
cimtype = 'uint16'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Sint16(CIMInt):
cimtype = 'sint16'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Uint32(CIMInt):
cimtype = 'uint32'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Sint32(CIMInt):
cimtype = 'sint32'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Uint64(CIMInt):
cimtype = 'uint64'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
class Sint64(CIMInt):
cimtype = 'sint64'
- def __init__(self, arg, base = 0):
- CIMInt.__init__(self, arg, base)
# CIM float types
class CIMFloat(CIMType, float):
- def __init__(self, arg):
- float.__init__(self, arg)
+ pass
class Real32(CIMFloat):
cimtype = 'real32'
- def __init__(self, arg):
- CIMFloat.__init__(self, arg)
class Real64(CIMFloat):
cimtype = 'real64'
- def __init__(self, arg):
- CIMFloat.__init__(self, arg)
def cimtype(obj):
"""Return the CIM type name of an object as a string. For a list, the
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cimxml_parse.py new/pywbem-0.7.0/cimxml_parse.py
--- old/pywbem-0.6.20081023.1/cimxml_parse.py 2007-12-03 01:49:49.000000000 +0100
+++ new/pywbem-0.7.0/cimxml_parse.py 2008-10-30 17:30:54.000000000 +0100
@@ -1,3 +1,23 @@
+#
+# (C) Copyright 2006, 2007 Hewlett-Packard Development Company, L.P.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+#
+
+# Author: Tim Potter
+
from xml.dom.pulldom import *
from pywbem import *
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/cim_xml.py new/pywbem-0.7.0/cim_xml.py
--- old/pywbem-0.6.20081023.1/cim_xml.py 2008-01-28 07:41:06.000000000 +0100
+++ new/pywbem-0.7.0/cim_xml.py 2008-10-30 17:30:54.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/__init__.py new/pywbem-0.7.0/__init__.py
--- old/pywbem-0.6.20081023.1/__init__.py 2008-09-14 05:11:45.000000000 +0200
+++ new/pywbem-0.7.0/__init__.py 2008-10-30 17:30:54.000000000 +0100
@@ -6,7 +6,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/mof_compiler.py new/pywbem-0.7.0/mof_compiler.py
--- old/pywbem-0.6.20081023.1/mof_compiler.py 2008-09-30 22:04:06.000000000 +0200
+++ new/pywbem-0.7.0/mof_compiler.py 2008-12-10 00:45:51.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -166,7 +166,7 @@
def p_error(p):
ex = MOFParseError()
if p is None:
- ex.message = 'Unexpected end of file'
+ ex.args = ('Unexpected end of file',)
raise ex
ex.file = p.lexer.parser.file
ex.lineno = p.lineno
@@ -272,7 +272,7 @@
raise
if p.parser.verbose:
p.parser.log('Creating namespace ' + ns)
- _create_ns(p, handle, ns)
+ _create_ns(p, p.parser.handle, ns)
fixedNS = True
continue
if not p.parser.search_paths:
@@ -507,7 +507,7 @@
aqual = CIMQualifier('ASSOCIATION', True, type='boolean')
# TODO flavor trash.
quals = [aqual] + p[3]
- p[0] = _assoc_or_inic_decl(quals, p)
+ p[0] = _assoc_or_indic_decl(quals, p)
def p_indicDeclaration(p):
"""indicDeclaration : '[' INDICATION qualifierListEmpty ']' CLASS className '{' classFeatureList '}' ';'
@@ -518,7 +518,7 @@
iqual = CIMQualifier('INDICATION', True, type='boolean')
# TODO flavor trash.
quals = [iqual] + p[3]
- p[0] = _assoc_or_inic_decl(quals, p)
+ p[0] = _assoc_or_indic_decl(quals, p)
def _assoc_or_indic_decl(quals, p):
"""(refer to grammer rules on p_assocDeclaration and p_indicDeclaration)"""
@@ -540,7 +540,7 @@
props = {}
methods = {}
for item in cfl:
- item.class_origin = came
+ item.class_origin = cname
if isinstance(item, CIMMethod):
methods[item.name] = item
else:
@@ -1182,11 +1182,11 @@
except CIMError, ce:
ce.file_line = (p.parser.file, p.lexer.lineno)
if ce.args[0] == CIM_ERR_NOT_FOUND:
- file = p.parser.mofcomp.find_mof(cname)
+ file_ = p.parser.mofcomp.find_mof(cname)
if p.parser.verbose:
p.parser.log('Class %s does not exist' % cname)
- if file:
- p.parser.mofcomp.compile_file(file, ns)
+ if file_:
+ p.parser.mofcomp.compile_file(file_, ns)
cc = p.parser.handle.GetClass(cname, LocalOnly=False,
IncludeQualifiers=True)
else:
@@ -1246,14 +1246,14 @@
| qualifierList identifier defaultValue ';'
"""
if len(p) == 4:
- id = p[1]
+ id_ = p[1]
val = p[2]
quals = []
else:
quals = p[1]
- id = p[2]
+ id_ = p[2]
val = p[3]
- p[0] = (quals, id, val)
+ p[0] = (quals, id_, val)
def p_booleanValue(p):
"""booleanValue : FALSE
@@ -1388,11 +1388,11 @@
pass
if len(args) > 0:
args = args[1:]
- super = self.GetClass(cc.superclass, *args, **kwargs)
- for prop in super.properties.values():
+ super_ = self.GetClass(cc.superclass, *args, **kwargs)
+ for prop in super_.properties.values():
if prop.name not in cc.properties:
cc.properties[prop.name] = prop
- for meth in super.methods.values():
+ for meth in super_.methods.values():
if meth.name not in cc.methods:
cc.methods[meth.name] = meth
return cc
@@ -1401,7 +1401,7 @@
cc = len(args) > 0 and args[0] or kwargs['NewClass']
if cc.superclass:
try:
- super = self.GetClass(cc.superclass, LocalOnly=True,
+ super_ = self.GetClass(cc.superclass, LocalOnly=True,
IncludeQualifiers=False)
except CIMError, ce:
if ce.args[0] == CIM_ERR_NOT_FOUND:
@@ -1603,8 +1603,8 @@
self.parser.log('%s:%s:' % (pe.file, pe.lineno))
if hasattr(pe, 'context'):
self.parser.log('\n'.join(pe.context))
- if pe.message:
- self.parser.log(pe.message)
+ if str(pe):
+ self.parser.log(str(pe))
raise
except CIMError, ce:
if hasattr(ce, 'file_line'):
@@ -1643,9 +1643,10 @@
classname = classname.lower()
for search in self.parser.search_paths:
for root, dirs, files in os.walk(search):
- for file in files:
- if file.endswith('.mof') and file[:-4].lower() == classname:
- return root + '/' + file
+ for file_ in files:
+ if file_.endswith('.mof') and \
+ file_[:-4].lower() == classname:
+ return root + '/' + file_
return None
def rollback(self, verbose=False):
@@ -1658,7 +1659,6 @@
if __name__ == '__main__':
from optparse import OptionParser
- import os
usage = 'usage: %prog -n <namespace> [options] <MOF file> ...'
oparser = OptionParser(usage=usage)
oparser.add_option('-s', '--search', dest='search',
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/PKG-INFO new/pywbem-0.7.0/PKG-INFO
--- old/pywbem-0.6.20081023.1/PKG-INFO 2008-10-24 05:11:55.000000000 +0200
+++ new/pywbem-0.7.0/PKG-INFO 2008-12-12 18:43:56.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: pywbem
-Version: 0.6.20081023.1
+Version: 0.7.0
Summary: Python WBEM client library
Home-page: http://pywbem.sf.net/
Author: Tim Potter
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/setup.py new/pywbem-0.7.0/setup.py
--- old/pywbem-0.6.20081023.1/setup.py 2008-10-24 05:11:51.000000000 +0200
+++ new/pywbem-0.7.0/setup.py 2008-12-12 18:01:03.000000000 +0100
@@ -7,7 +7,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -35,7 +35,7 @@
'long_description': __doc__,
'platforms': ['any'],
'url': 'http://pywbem.sf.net/',
- 'version': '0.6.20081023.1',
+ 'version': '0.7.0',
'license': 'LGPLv2',
'packages': ['pywbem'],
# Make packages in root dir appear in pywbem module
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/tupleparse.py new/pywbem-0.7.0/tupleparse.py
--- old/pywbem-0.6.20081023.1/tupleparse.py 2008-01-15 23:47:55.000000000 +0100
+++ new/pywbem-0.7.0/tupleparse.py 2008-10-30 17:30:54.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/tupletree.py new/pywbem-0.7.0/tupletree.py
--- old/pywbem-0.6.20081023.1/tupletree.py 2007-12-03 01:49:49.000000000 +0100
+++ new/pywbem-0.7.0/tupletree.py 2008-10-30 17:30:54.000000000 +0100
@@ -4,7 +4,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/twisted_client.py new/pywbem-0.7.0/twisted_client.py
--- old/pywbem-0.6.20081023.1/twisted_client.py 2008-10-16 01:42:48.000000000 +0200
+++ new/pywbem-0.7.0/twisted_client.py 2008-10-30 17:30:54.000000000 +0100
@@ -4,7 +4,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/wbemcli.py new/pywbem-0.7.0/wbemcli.py
--- old/pywbem-0.6.20081023.1/wbemcli.py 2008-10-24 02:45:17.000000000 +0200
+++ new/pywbem-0.7.0/wbemcli.py 2008-10-30 17:30:54.000000000 +0100
@@ -5,7 +5,7 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
-# License, or (at your option) any later version.
+# License.
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/pywbem-0.6.20081023.1/yacc.py new/pywbem-0.7.0/yacc.py
--- old/pywbem-0.6.20081023.1/yacc.py 2008-05-29 01:08:44.000000000 +0200
+++ new/pywbem-0.7.0/yacc.py 2008-11-04 21:58:36.000000000 +0100
@@ -8,7 +8,7 @@
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License, or (at your option) any later version.
+# version 2.1 of the License.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -71,7 +71,11 @@
yaccdevel = 0 # Set to True if developing yacc. This turns off optimized
# implementations of certain functions.
-import re, types, sys, cStringIO, md5, os.path
+import re, types, sys, cStringIO, os.path
+try:
+ from hashlib import md5
+except ImportError:
+ from md5 import new as md5
# Exception raised for yacc-related errors
class YaccError(Exception): pass
@@ -1156,7 +1160,7 @@
Errorfunc = None # User defined error handler
- Signature = md5.new() # Digital signature of the grammar rules, precedence
+ Signature = md5() # Digital signature of the grammar rules, precedence
# and other information. Used to determined when a
# parsing table needs to be regenerated.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org