Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469022 - sys-apps/portage: Not needed code
Summary: sys-apps/portage: Not needed code
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 468524
  Show dependency tree
 
Reported: 2013-05-08 10:17 UTC by Vladimir Romanov (RETIRED)
Modified: 2013-05-16 00:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Romanov (RETIRED) gentoo-dev 2013-05-08 10:17:00 UTC
In emerge python script after "if __name__ = "__main__"" there is "import sys". But there is no need to import sys, as it is imported already in beginning - "import platform, signal, sys"

Reproducible: Always
Comment 1 Vladimir Romanov (RETIRED) gentoo-dev 2013-05-08 12:57:49 UTC
Several other bugs: archive-conf, line 45: variable sum is used, which is predefined name in python

line 73: variable file used (predefined)

Clean_Locks file, line 16, import portage is not needed as it is already defined in line 11

Dispatch_Conf file, line 411, first print is with (), second is without
line 431: no need to import sys, it is imported in line 18
line 456: no need to import find_binary, it is imported in line 28
Comment 3 Zac Medico gentoo-dev 2013-05-16 00:57:46 UTC
This is fixed in 2.1.12 and 2.2.0_alpha175.