Projects
Kolab:3.4
python-sievelib
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 5
View file
python-sievelib.spec
Changed
@@ -7,7 +7,7 @@ Name: python-sievelib Version: 0.5.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Managesieve library in Python Group: Development/Tools @@ -76,11 +76,6 @@ %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root %{buildroot} -for f in %{buildroot}%{_bindir}/sphinx-*; -do - mv $f $f-%{python3_version} - ln -s %{_bindir}/`basename $f-%{python3_version}` $f-3 -done popd %endif # with_python3 @@ -99,5 +94,10 @@ %endif # with_python3 %changelog +* Tue Aug 26 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5.2-2 +- Fix Python 3 compatibility, +- Better verbosity in debug mode, +- Fix mixed use of tabs and spaces for indentation + * Tue Aug 19 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.5.2-1 - Initial package
View file
debian.changelog
Changed
@@ -1,3 +1,11 @@ +sievelib (0.5.2-2) unstable; urgency=low + + * Fix Python 3 compatibility, + * Better verbosity in debug mode, + * Fix mixed use of tabs and spaces for indentation + + -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Tue, 26 Aug 2014 14:12:01 +0100 + sievelib (0.5.2-1) unstable; urgency=low * source package automatically created by stdeb 0.6.0+git
View file
python-sievelib.dsc
Changed
@@ -2,7 +2,7 @@ Source: sievelib Binary: python-sievelib Architecture: all -Version: 0.5.2-1 +Version: 0.5.2-2 Maintainer: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> Standards-Version: 3.9.3 Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3), debhelper (>= 7)
View file
sievelib-0.5.2.tar.gz/sievelib/digest_md5.py
Changed
@@ -26,8 +26,8 @@ self.__params[m.group(1)] = m.group(2) def __make_cnonce(self): - ret = "" - for i in xrange(12): + ret = "" + for i in xrange(12): ret += chr(random.randint(0, 0xff)) return base64.b64encode(ret)
View file
sievelib-0.5.2.tar.gz/sievelib/managesieve.py
Changed
@@ -88,6 +88,7 @@ def __dprint(self, message): if not self.__debug: return + print(message) def __read_block(self, size): """Read a block of 'size' bytes from the server. @@ -114,8 +115,9 @@ return buf try: buf += self.sock.recv(size) - except (socket.timeout, ssl.SSLError), e: + except (socket.timeout, ssl.SSLError) as err: raise Error("Failed to read %d bytes from the server" % size) + self.__dprint("S: %s" % buf) return buf def __read_line(self): @@ -162,6 +164,7 @@ if m.group(1) == "NO": self.__parse_error(m.group(2)) raise Response(m.group(1), m.group(2)) + self.__dprint("S: %s" % ret) return ret def __read_response(self, nblines=-1): @@ -182,11 +185,11 @@ while True: try: line = self.__read_line() - except Response, inst: + except Response as inst: code = inst.code data = inst.data break - except Literal, inst: + except Literal as inst: resp += self.__read_block(inst.value) continue if not len(line): @@ -235,7 +238,7 @@ tosend = name if len(args): tosend += " " + " ".join(self.__prepare_args(args)) - self.__dprint("Command: %s" % tosend) + self.__dprint("C: %s" % tosend) self.sock.send("%s%s" % (tosend, CRLF)) for l in extralines: self.sock.send("%s%s" % (l, CRLF)) @@ -398,8 +401,8 @@ return False try: nsock = ssl.wrap_socket(self.sock, keyfile, certfile) - except ssl.SSLError, e: - raise Error("SSL error: %s" % str(e)) + except ssl.SSLError as err: + raise Error("SSL error: %s" % str(err)) self.sock = nsock self.__capabilities = {} self.__get_capabilities() @@ -463,7 +466,7 @@ self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((self.srvaddr, self.srvport)) self.sock.settimeout(Client.read_timeout) - except socket.error, msg: + except socket.error as msg: raise Error("Connection to server failed: %s" % str(msg)) if not self.__get_capabilities():
View file
sievelib-0.5.2.tar.gz/sievelib/parser.py
Changed
@@ -105,7 +105,7 @@ if not self.debug: return for m in msgs: - print m + print(m) def __reset_parser(self): """Reset parser's internal variables @@ -392,8 +392,8 @@ raise ParseError("end of script reached while %s expected" % \ "|".join(self.__expected)) - except (ParseError, UnknownCommand, BadArgument, BadValue), e: - self.error = "line %d: %s" % (self.lexer.curlineno(), str(e)) + except (ParseError, UnknownCommand, BadArgument, BadValue) as err: + self.error = "line %d: %s" % (self.lexer.curlineno(), str(err)) return False return True @@ -430,17 +430,17 @@ options, args = op.parse_args() if not len(args): - print "Nothing to parse, exiting." + print("Nothing to parse, exiting.") sys.exit(0) for a in args: p = Parser(debug=options.debug) - print "Parsing file %s... " % a, + print("Parsing file %s... " % (a)) if p.parse_file(a): - print "OK" + print("OK") if options.verbose: p.dump() continue - print "ERROR" - print p.error + print("ERROR") + print(p.error)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.