Skip to content

"python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment" #54576

@jcea

Description

@jcea
BPO 10367
Nosy @jcea, @pjeby, @tarekziade, @merwok, @briancurtin, @berkerpeksag
Superseder
  • bpo-12853: global name 'r' is not defined in upload.py
  • Files
  • 10367.diff: Lib/distutils/command/upload.py
  • 10367.updated.diff: Patch the multiple arguments to self.announce
  • test_10367.diff: The unit test
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/merwok'
    closed_at = <Date 2016-01-20.06:27:46.382>
    created_at = <Date 2010-11-08.21:36:51.074>
    labels = ['easy', 'type-bug', 'library']
    title = '"python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable \'result\' referenced before assignment"'
    updated_at = <Date 2016-01-20.06:27:46.371>
    user = 'https://github.com/jcea'

    bugs.python.org fields:

    activity = <Date 2016-01-20.06:27:46.371>
    actor = 'berker.peksag'
    assignee = 'eric.araujo'
    closed = True
    closed_date = <Date 2016-01-20.06:27:46.382>
    closer = 'berker.peksag'
    components = ['Distutils', 'Distutils2']
    creation = <Date 2010-11-08.21:36:51.074>
    creator = 'jcea'
    dependencies = []
    files = ['19690', '19913', '19981']
    hgrepos = []
    issue_num = 10367
    keywords = ['patch', 'easy']
    message_count = 24.0
    messages = ['120804', '120809', '120824', '120891', '120893', '121695', '121714', '121793', '123142', '123193', '123262', '123271', '123295', '123297', '123301', '123303', '123305', '123306', '123307', '123314', '123665', '129858', '129869', '258646']
    nosy_count = 9.0
    nosy_names = ['jcea', 'pje', 'tarek', 'eric.araujo', 'brian.curtin', 'Priscila.Manhaes', 'daniel.tavares', 'berker.peksag', 'nilovna']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '12853'
    type = 'behavior'
    url = 'https://bugs.python.org/issue10367'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    Labels

    easystdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions