Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
party_start () {
echo "<ul>"
}
party_end () {
echo "</ul>"
}
@CyrilRoelandteNovance
CyrilRoelandteNovance / gist:1af6a5a23112ce444bda0ca2010d3465
Created August 3, 2021 13:49
Close OpenStack bugs on Launchpad that should have been closed automatically
#!/bin/bash
set -e
set -u
# Possible improvements:
# - Automagically set the bug status to "Fix Released"
# - Handle stable branches
old=$1
# Copyright 2014 eNovance SAS <licensing@enovance.com>
#
# Author: Cyril Roelandt <cyril.roelandt@enovance.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
--- a/httpretty/core.py
+++ b/httpretty/core.py
@@ -208,8 +208,8 @@ class HTTPrettyRequest(BaseHTTPRequestHandler, BaseClass):
content_type = self.headers.get('content-type', '')
do_parse = PARSING_FUNCTIONS.get(content_type, FALLBACK_FUNCTION)
- body = decode_utf8(body)
try:
+ body = decode_utf8(body)
return do_parse(body)