Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Pasting to a pastebin with a URL that is not root #67

Copy link
Copy link
@ikanobori

Description

@ikanobori
Issue body actions

I have installed a lodgeit paste bin in my local machine at the address http://localhost/lodgeit/ ( I needed to modify the source a little to make it work there). bpython wasn't able to post to it, giving me an error saying basically that localhost/xmlrpc doesn't work.

I traced the error back to the source of bpython, and it turns out that the use of urljoin is the culprit. In bpython/cli.py, the use of urljoin('http://localhost/lodgeit','/xmlrpc/') returns 'http://localhost/xmlrpc/' which doesn't work.

It now works for me after I did two changes:

  1. In the config file, the parameter pastebin_url must end now with a trailing slash (opposite to the documentation).
  2. I applied the attached patch to bpython/cli.py

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.