Code

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#9283 closed (fixed)

DeprecationWarnings caused by makemessages with Python 2.6 (os.popen3)

Reported by: arkx Owned by: nobody
Component: Internationalization Version: 1.0
Severity: Keywords: python26
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

I got the following DeprecationWarnings when I used makemessages:

/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/django/core/management/commands/makemessages.py:131: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.

(stdin, stdout, stderr) = os.popen3(cmd, 't')

/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/django/core/management/commands/makemessages.py:151: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.

(stdin, stdout, stderr) = os.popen3('msguniq --to-code=utf-8 "%s"' % potfile, 't')

/Library/Frameworks/Python.framework/Versions/Current/lib/python2.6/site-packages/django/core/management/commands/makemessages.py:158: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module.

(stdin, stdout, stderr) = os.popen3('msgmerge -q "%s" "%s"' % (pofile, potfile), 't')

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(In [9148]) Fixed #9283 -- Deliberately silence one deprecation warning raised by python 2.6.

comment:2 Changed 6 years ago by mtredinnick

(In [9149]) [1.0.X] Fixed #9283 -- Deliberately silence one deprecation warning raised by python 2.6.

Backport of r9148 from trunk.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.