Georgij Kondratjev [EMAIL PROTECTED] added the comment:
import curses.ascii as curses_ascii
If you like curses_ascii you would probably like curses.ascii :) so here
is the patch. I tested it with module built-in testing facility (if
__name__ == '__main__') but didn't run other tests.
Patch
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Sorry, I didn't not distinguish between curses module ascii and built-in
function ascii.
import curses.ascii as ascii works. Is this a good fix?
___
Python tracker [EMAIL PROTECTED]
http
New submission from Georgij Kondratjev [EMAIL PROTECTED]:
Line 'import curses, ascii' should be replaced with 'import curses'
--
components: Library (Lib)
messages: 68969
nosy: orivej
severity: normal
status: open
title: curses/textpad.py incorrectly and redundantly imports ascii
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Not creating new bug entry because everybody can quickly fix it.
In urllib/request.py some instances of URLError are raised with raise
urllib.error.URLError and this works, buth there are lines with raise
URLError which produces NameError
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
when invoked it tries to write to /usr/local/lib/python3.0/lib2to3
2to3 always worked like this. I always had to run it as root. Seems
weird for me too.
Furthermore, as a test, I copied refactor.py to xxx.py
and ran 2to3 on xxx.py
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Do what Benjamin Peterson suggested and also edit get_fixers(self) in
refactor.py so fixer_pkg is initialized like this:
fixer_pkg = os.path.relpath(self.fixer_dir,
os.path.join(os.path.dirname(__file__), '..'))
fixer_pkg
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
Here is the patch (against both current svn and beta 1).
--
keywords: +patch
Added file: http://bugs.python.org/file10676/2to3.patch
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org
Georgij Kondratjev [EMAIL PROTECTED] added the comment:
After uploading the patch I noticed
-#!/usr/bin/env python
+#!/usr/bin/python3.0
in it.
They just should be dropped.
Added file: http://bugs.python.org/file10677/2to3.patch
___
Python tracker [EMAIL
New submission from Georgij Kondratjev [EMAIL PROTECTED]:
First time I noticed it during compilation of python3 r62301, then
3.0a4, then 3.0a3, with and without CFLAGS set.
Step ./python -E ./setup.py -q build called by make never ends (and
there is no output). Just /python behaves the same
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1966
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1595
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1685
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1297193
_
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1946
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1750076
_
___
Python-bugs-list mailing list
Unsubscribe:
http
Georgij Kondratjev added the comment:
If you notice that at
http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350r1=58058r2=60350
shutil.rmtree(self.homeDir) didn`t change between revisions, that
would be false: in fact extra space () was added
New submission from Georgij Kondratjev:
except OSError, e:
(appears twice) should be changed to
except OSError as e:
--
components: Library (Lib)
messages: 61777
nosy: orivej
severity: normal
status: open
title: Lib/bsddb/test/test_thread.py uses old 'except' syntax
type: compile error
Georgij Kondratjev added the comment:
Appeared in 60350 svnmerge:
http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350view=log
http://svn.python.org/view/python/branches/py3k/Lib/bsddb/test/test_thread.py?rev=60350r1=58058r2=60350
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1872
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Georgij Kondratjev:
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1943
__
___
Python-bugs-list mailing list
Unsubscribe:
http
New submission from Georgij Kondratjev:
(With current python3-svn)
While trying to response.read() got this:
---
File /usr/lib/python3.0/httplib.py, line 533, in read
return self._read_chunked(amt)
File /usr/lib/python3.0/httplib.py, line 573, in _read_chunked
i = line.find
Georgij Kondratjev added the comment:
Sorry, while debugging there was no 'b':
---
line = self.fp.readline()
+print(' ***', line)
i = line.find(;)
---
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1929
Georgij Kondratjev added the comment:
Maybe it was not noted, but it is documented:
http://docs.python.org/dev/3.0/library/sys.html
--
nosy: +orivej
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1930
23 matches
Mail list logo