diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/bebop/query.py b/bebop/query.py index <HASH>..<HASH> 100644 --- a/bebop/query.py +++ b/bebop/query.py @@ -7,6 +7,7 @@ Created on Jun 16, 2011 from schema import SolrSchemaField, UniqueKey from util import NotGiven, MultiDict import itertools +from functools import partial def join_with_separator(sepa...
[query] Adding some fixes to serialization in query.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -27,12 +27,11 @@ fortran_install = ['pysatCDF', 'madrigalWeb', 'h5py', 'PyForecastTools'] # python version specific support libraries if sys.version_info.major == 2: install_requires.extend(['xarray<0.12', 'pandas>=0.23...
REQ: remove matplotlib from requirements
py
diff --git a/xclim/testing/utils.py b/xclim/testing/utils.py index <HASH>..<HASH> 100644 --- a/xclim/testing/utils.py +++ b/xclim/testing/utils.py @@ -520,6 +520,7 @@ def show_versions(file: os.PathLike | StringIO | TextIO | None = None) -> str | ("dask", lambda mod: mod.__version__), ("cf_xarray", l...
Add clisops to version_info
py
diff --git a/adafruit_mcp230xx/digital_inout.py b/adafruit_mcp230xx/digital_inout.py index <HASH>..<HASH> 100644 --- a/adafruit_mcp230xx/digital_inout.py +++ b/adafruit_mcp230xx/digital_inout.py @@ -112,9 +112,9 @@ class DigitalInOut: try: if _get_bit(self._mcp.gppu, self._pin): r...
address pylint raise-missing-from diagnostics
py
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py index <HASH>..<HASH> 100644 --- a/salt/modules/yumpkg.py +++ b/salt/modules/yumpkg.py @@ -88,7 +88,7 @@ def list_upgrades(*args): for pkg in pkgs: exactmatch, matched, unmatched = yum.packages.parsePackages(pl, [pkg]) for p...
Check if the pkg.arch is 'noarch' The version should be returned on all platforms if package arch is 'noarch'.
py
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py index <HASH>..<HASH> 100644 --- a/saltapi/netapi/rest_cherrypy/app.py +++ b/saltapi/netapi/rest_cherrypy/app.py @@ -201,10 +201,10 @@ def wants_html(): # preserve order of preference. ct_out_map = ( ('application/json', json.d...
Use yaml.safe_dump instead of yaml.dump to coerce Python objects This was outputting unicode strings as Python objects.
py
diff --git a/homely/files.py b/homely/files.py index <HASH>..<HASH> 100644 --- a/homely/files.py +++ b/homely/files.py @@ -403,8 +403,6 @@ class BlockInFile(Helper): found = False def _writeall(): - nonlocal found - found = True tmp.write(self._...
[9] homely.files: can't use nonlocal in python2
py
diff --git a/xdot/dot/parser.py b/xdot/dot/parser.py index <HASH>..<HASH> 100644 --- a/xdot/dot/parser.py +++ b/xdot/dot/parser.py @@ -354,6 +354,7 @@ class DotParser(Parser): self.consume() node_ids = [id, self.parse_node_id()] while self.lookahead.type == EDGE_OP: + ...
Add consume method call. It was missing as pointed out by sunziping<I>. Fixes <URL>
py
diff --git a/qiskit/circuit/library/standard_gates/p.py b/qiskit/circuit/library/standard_gates/p.py index <HASH>..<HASH> 100644 --- a/qiskit/circuit/library/standard_gates/p.py +++ b/qiskit/circuit/library/standard_gates/p.py @@ -258,9 +258,9 @@ class MCPhaseGate(ControlledGate): else: from .u3 i...
fixes MCPhaseGate definition (#<I>)
py
diff --git a/tests/test_charge.py b/tests/test_charge.py index <HASH>..<HASH> 100644 --- a/tests/test_charge.py +++ b/tests/test_charge.py @@ -149,13 +149,14 @@ class TestCharges(TestCase): manual_charge.charge() self.assertTrue(manual_charge.is_charged) - charge_list_mocked.return_value = st...
Fix contenttype id generation for older python versions
py
diff --git a/docs/exts/docs_build/third_party_inventories.py b/docs/exts/docs_build/third_party_inventories.py index <HASH>..<HASH> 100644 --- a/docs/exts/docs_build/third_party_inventories.py +++ b/docs/exts/docs_build/third_party_inventories.py @@ -20,7 +20,7 @@ THIRD_PARTY_INDEXES = { 'celery': 'https://docs.ce...
Update Mongodb inventory URL to fix docs build (#<I>) Master is failing on docs build because of the following error: ``` Failed to fetch inventory: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -17,16 +17,16 @@ setup(name='tmc', scripts=['bin/tmc'], packages=['tmc'], classifiers=[ - "Development Status :: 3 - Alpha", - "Environment :: Console", - "Intended Audience :: Developers", ...
nicer indent, last commit closes #4
py
diff --git a/salt/_compat.py b/salt/_compat.py index <HASH>..<HASH> 100644 --- a/salt/_compat.py +++ b/salt/_compat.py @@ -181,15 +181,15 @@ class IPv6AddressScoped(ipaddress.IPv6Address): :param data: :return: ''' - if sys.version_info.major > 2: - return isinstance(data, b...
Lintfix refactor: remove duplicate returns as not needed
py
diff --git a/arcrest/gptypes.py b/arcrest/gptypes.py index <HASH>..<HASH> 100644 --- a/arcrest/gptypes.py +++ b/arcrest/gptypes.py @@ -170,7 +170,7 @@ class GPFeatureRecordSetLayer(GPBaseType): self._features = Geometry if sr: self.spatialReference = geometry.SpatialReference(sr) - ...
Weeeeeird.
py
diff --git a/src/python/pants/backend/go/target_types.py b/src/python/pants/backend/go/target_types.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/go/target_types.py +++ b/src/python/pants/backend/go/target_types.py @@ -149,7 +149,7 @@ class GoBinaryMainAddress(StringField): class GoBinary(Target): ...
[internal] go: remove dependencies field from go_binary target type (#<I>) Remove the `dependencies` field from the `go_binary` target type since all dependencies should come through the `main` package. (And the existing `package` rule was not including `dependencies` in any event.) [ci skip-rust] [ci skip-build-w...
py
diff --git a/launch_control/tests/test_commands.py b/launch_control/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/launch_control/tests/test_commands.py +++ b/launch_control/tests/test_commands.py @@ -93,4 +93,4 @@ class DispatcherTestCase(MockerTestCase): LaunchControlDispatcher = self.mocker.replac...
Update tests to reflect the fact that dispatcher now exits the python interpreter after running a command
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,7 @@ py_version = platform.python_version() if py_version < '2.7': REQUIRED_PACKAGES.append('argparse>=1.2.1') -_APITOOLS_VERSION = '0.5.21' +_APITOOLS_VERSION = '0.5.22' with open('README.rst') as fileobj...
Update for <I> release.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='consoleprinter', - version='36', + version='37', description='Console printer with linenumbers, stacktraces, logging, conversions and...
pip Thursday <I> April <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/frasco_forms/__init__.py b/frasco_forms/__init__.py index <HASH>..<HASH> 100644 --- a/frasco_forms/__init__.py +++ b/frasco_forms/__init__.py @@ -124,7 +124,7 @@ class FormsFeature(Feature): try: as_ = opts.get("var_name", getattr(self.form, "as_", "form")) - form_class =...
updated after changes to Action.init_view
py
diff --git a/tests/unit/fakes.py b/tests/unit/fakes.py index <HASH>..<HASH> 100644 --- a/tests/unit/fakes.py +++ b/tests/unit/fakes.py @@ -37,7 +37,7 @@ import pyrax.utils as utils example_uri = "http://example.com" -class FakeResponse(dict): +class FakeResponse(object): headers = {} body = "" statu...
Fixed a unit test to match recent changes.
py
diff --git a/salt/proxy/restconf.py b/salt/proxy/restconf.py index <HASH>..<HASH> 100644 --- a/salt/proxy/restconf.py +++ b/salt/proxy/restconf.py @@ -11,7 +11,7 @@ Usage .. note:: To be able to use this module you need to enable to RESTCONF on your device - and having https enabled. + and have https enab...
Update salt/proxy/restconf.py
py
diff --git a/src/Yowsup/connectionmanager.py b/src/Yowsup/connectionmanager.py index <HASH>..<HASH> 100644 --- a/src/Yowsup/connectionmanager.py +++ b/src/Yowsup/connectionmanager.py @@ -720,7 +720,7 @@ class ReaderThread(threading.Thread): if countdown % (self.selectTimeout*10) == 0 or countdown < 11: self....
Increased no-ping timeout to <I> seconds
py
diff --git a/benchexec/tablegenerator/__init__.py b/benchexec/tablegenerator/__init__.py index <HASH>..<HASH> 100644 --- a/benchexec/tablegenerator/__init__.py +++ b/benchexec/tablegenerator/__init__.py @@ -22,6 +22,7 @@ from __future__ import absolute_import, division, print_function, unicode_litera import argparse ...
Column types are chosen correctly when using tablegenerator sequentially. Due to shared instances of column objects in RunSetResults, types of columns where always changed for all RunSetResults based on the last run set defined. This could lead to errors, e.g. if the last run set did not contain any values for a me...
py
diff --git a/pybromo/timestamps.py b/pybromo/timestamps.py index <HASH>..<HASH> 100644 --- a/pybromo/timestamps.py +++ b/pybromo/timestamps.py @@ -170,7 +170,7 @@ class TimestapSimulation: s1 = 'P_' + '_'.join(part_seq) s2 = 'D_' + '_'.join('%.1e' % D for D in self.D_values) s3 = 'E_' + '_'.j...
Add 'k' suffix to rates in kcps in smFRET file names
py
diff --git a/test/tabletmanager.py b/test/tabletmanager.py index <HASH>..<HASH> 100755 --- a/test/tabletmanager.py +++ b/test/tabletmanager.py @@ -7,10 +7,6 @@ warnings.simplefilter("ignore") import json import logging -import os -import signal -from subprocess import PIPE -import threading import time import uni...
test: Remove unused imports from tabletmanager.py.
py
diff --git a/lib/svtplay_dl/fetcher/hls.py b/lib/svtplay_dl/fetcher/hls.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/fetcher/hls.py +++ b/lib/svtplay_dl/fetcher/hls.py @@ -4,6 +4,7 @@ from __future__ import absolute_import import sys import os import re +import copy from svtplay_dl.output import progressba...
hls: have the same interface as hds
py
diff --git a/ipymd/core/contents_manager.py b/ipymd/core/contents_manager.py index <HASH>..<HASH> 100644 --- a/ipymd/core/contents_manager.py +++ b/ipymd/core/contents_manager.py @@ -25,6 +25,7 @@ except ImportError: from IPython.config.configurable import Configurable try: + from notebook import transutils ...
Fix: "NameError: name '_' is not defined" running `ipymd` from commandline - Fix #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from __future__ import with_statement import os import sys -from distutils.core import setup, Extension +from setuptools import setup, Extension from distutils.command.build_ext import build_ext from distuti...
switch setup.py to use setuptools (in preparation for building wheels)
py
diff --git a/picopt.py b/picopt.py index <HASH>..<HASH> 100755 --- a/picopt.py +++ b/picopt.py @@ -844,7 +844,7 @@ def main(): pool.close() pool.join() - if options.record_timestamp: + if options.record_timestamp and options.recurse: for filename in filter_list: if os.path.isdir(...
only record timestamps if we recrused into those directories
py
diff --git a/discord/ui/view.py b/discord/ui/view.py index <HASH>..<HASH> 100644 --- a/discord/ui/view.py +++ b/discord/ui/view.py @@ -507,7 +507,9 @@ class ViewStore: self.__verify_integrity() message_id: Optional[int] = interaction.message and interaction.message.id key = (component_type, m...
Fallback to None message_id searches in View dispatch Not all persistent views have an associated message_id attached to them. Fix #<I>
py
diff --git a/jaraco/util/string.py b/jaraco/util/string.py index <HASH>..<HASH> 100644 --- a/jaraco/util/string.py +++ b/jaraco/util/string.py @@ -96,12 +96,8 @@ def global_format(string): """ format the string using variables in the caller's global namespace. - >>> import six - >>> a = 3 >>> fmt = "The...
Remove patchy docs. Tests fail on Python 2 anyway, so rely only on Python 3 for tests.
py
diff --git a/tools/run_tests/run_interop_tests.py b/tools/run_tests/run_interop_tests.py index <HASH>..<HASH> 100755 --- a/tools/run_tests/run_interop_tests.py +++ b/tools/run_tests/run_interop_tests.py @@ -55,7 +55,7 @@ os.chdir(ROOT) _DEFAULT_SERVER_PORT=8080 _SKIP_COMPRESSION = ['client_compressed_unary', - ...
added freaking missing comma
py
diff --git a/plenum/server/node.py b/plenum/server/node.py index <HASH>..<HASH> 100644 --- a/plenum/server/node.py +++ b/plenum/server/node.py @@ -2143,7 +2143,7 @@ class Node(HasActionQueue, Motor, Propagator, MessageProcessor, HasFileStorage, self.process_query(request, frm) self.total_read_...
INDY-<I>: Corrected a method name
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ def create_command(text, commands): with open( os.path.join(os.path.dirname(__file__), "README.md"), encoding="utf-8" ) as readme: - README = readme.read().split("h1>\n\n", 2)[1] + README = readme.r...
Fix removing logo from README for PyPi
py
diff --git a/bugwarrior/services/gitlab.py b/bugwarrior/services/gitlab.py index <HASH>..<HASH> 100644 --- a/bugwarrior/services/gitlab.py +++ b/bugwarrior/services/gitlab.py @@ -253,6 +253,9 @@ class GitlabClient(ServiceClient): result = [] try: result = self._fetch_paged(query) + ...
gitlab: When failing to connect do not pass (#<I>) With query-based fetching it is possible to end up only in paths that catch connection errors. While catching OSErrors there might be a valid strategy given the points documented, this also catches failed connection attempts, as ConnectionError inherits from OSErro...
py
diff --git a/salt/utils/network.py b/salt/utils/network.py index <HASH>..<HASH> 100644 --- a/salt/utils/network.py +++ b/salt/utils/network.py @@ -526,7 +526,7 @@ def ip_addrs(interface=None, include_loopback=False): if addr and secondary.get('type') == 'inet': if include_loopback \ ...
Fix undefined variable <I>f3 introduced an undefined variable, this fixes that.
py
diff --git a/test/test_workflow.py b/test/test_workflow.py index <HASH>..<HASH> 100644 --- a/test/test_workflow.py +++ b/test/test_workflow.py @@ -88,6 +88,7 @@ def basic_conf(tmpdir, dummy_packages): def test_run_publish(capfd, basic_conf): tmpdir, local, conf, machine_file = basic_conf + tmpdir = util.long...
TST: fix too long path in test_workflow
py
diff --git a/scripts/VirtuaBuild/smoke_test.py b/scripts/VirtuaBuild/smoke_test.py index <HASH>..<HASH> 100755 --- a/scripts/VirtuaBuild/smoke_test.py +++ b/scripts/VirtuaBuild/smoke_test.py @@ -154,7 +154,6 @@ for path in res_paths: print "Tests completed. Killing instance now..." proc.send_signal(signal.S...
Removed the 5 second delay, because it is not necessary.
py
diff --git a/aiogram/contrib/middlewares/fsm.py b/aiogram/contrib/middlewares/fsm.py index <HASH>..<HASH> 100644 --- a/aiogram/contrib/middlewares/fsm.py +++ b/aiogram/contrib/middlewares/fsm.py @@ -1,5 +1,4 @@ import copy -import weakref from aiogram.dispatcher.middlewares import LifetimeControllerMiddleware from...
Remove unused code from fsm.py (#<I>)
py
diff --git a/optlang/glpk_interface.py b/optlang/glpk_interface.py index <HASH>..<HASH> 100644 --- a/optlang/glpk_interface.py +++ b/optlang/glpk_interface.py @@ -582,6 +582,11 @@ class Model(interface.Model): def optimize(self): glp_simplex(self.problem, self.configuration._smcp) + if _GLPK_STAT...
For glp_simplex, turn on presolve if status undefined, solve again and then turn off presolve again
py
diff --git a/tests/test_general.py b/tests/test_general.py index <HASH>..<HASH> 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -177,7 +177,7 @@ def test_not_really_random(): def test_not_enough_ascii(): with pytest.raises(ValueError): - random_ascii_words(lang='zh', bits_per_word=14) +...
relax the test that assumed the Chinese list has few ASCII words
py
diff --git a/libpebble2/services/appmessage.py b/libpebble2/services/appmessage.py index <HASH>..<HASH> 100644 --- a/libpebble2/services/appmessage.py +++ b/libpebble2/services/appmessage.py @@ -52,11 +52,11 @@ class AppMessageService(EventSourceMixin): for t in message.dictionary: assert ...
Fix appmessage service errors.
py
diff --git a/s_tui/s_tui.py b/s_tui/s_tui.py index <HASH>..<HASH> 100755 --- a/s_tui/s_tui.py +++ b/s_tui/s_tui.py @@ -645,7 +645,7 @@ def main(): if args.terminal or args.json: logging.info("Printing single line to terminal") - sources = [FreqSource(is_admin), TemperatureSource(), UtilSource(), ...
Add Fan speed to -t and -j outputs
py
diff --git a/can/interfaces/kvaser/canlib.py b/can/interfaces/kvaser/canlib.py index <HASH>..<HASH> 100644 --- a/can/interfaces/kvaser/canlib.py +++ b/can/interfaces/kvaser/canlib.py @@ -427,7 +427,11 @@ class KvaserBus(BusABC): dlc = ctypes.c_uint(0) flags = ctypes.c_uint(0) timestamp = ctyp...
Kvaser Bus recv should block when timeout is None. #<I>
py
diff --git a/censys/asm/__init__.py b/censys/asm/__init__.py index <HASH>..<HASH> 100644 --- a/censys/asm/__init__.py +++ b/censys/asm/__init__.py @@ -2,3 +2,4 @@ An easy-to-use and lightweight API wrapper for the Censys ASM platform (censys.io). """ __version__ = "v1" +__all__ = ["api", "assets", "client", "events"...
chore: asm __all__
py
diff --git a/xclim/indices/_threshold.py b/xclim/indices/_threshold.py index <HASH>..<HASH> 100644 --- a/xclim/indices/_threshold.py +++ b/xclim/indices/_threshold.py @@ -1834,7 +1834,7 @@ def windy_days( WS_{ij} > Threshold [m s-1] """ thresh = convert_units_to(thresh, sfcWind) - out = threshold_...
Ensure windy days + calm days = total days.
py
diff --git a/luigi/hdfs.py b/luigi/hdfs.py index <HASH>..<HASH> 100644 --- a/luigi/hdfs.py +++ b/luigi/hdfs.py @@ -72,7 +72,7 @@ class HdfsClient(FileSystem): if p.returncode == 0: return True else: - not_found_pattern = "^stat: cannot stat `.*': No such file or directory$" + ...
Updating code to run in both CHD3/4 and Hortonworks current releases Updated code after the review
py
diff --git a/kytos_utils/cli/config.py b/kytos_utils/cli/config.py index <HASH>..<HASH> 100644 --- a/kytos_utils/cli/config.py +++ b/kytos_utils/cli/config.py @@ -18,7 +18,7 @@ # You should have received a copy of the GNU General Public License # along with Foobar. If not, see <http://www.gnu.org/licenses/>. -from...
Fixing some bugs with config sections
py
diff --git a/families/settings/sawtooth_settings/processor/main.py b/families/settings/sawtooth_settings/processor/main.py index <HASH>..<HASH> 100644 --- a/families/settings/sawtooth_settings/processor/main.py +++ b/families/settings/sawtooth_settings/processor/main.py @@ -31,7 +31,8 @@ DISTRIBUTION_NAME = 'sawtooth-s...
Update settings log formatting to match validator settings_tp wasn't printing microseconds so its messages weren't aligned with validator logging. This is the worst travesty to befall any codebase ever, but I fixed it. Probably.
py
diff --git a/aerospike/tests/common.py b/aerospike/tests/common.py index <HASH>..<HASH> 100644 --- a/aerospike/tests/common.py +++ b/aerospike/tests/common.py @@ -3,12 +3,15 @@ # Licensed under a 3-clause BSD style license (see LICENSE) import os -from datadog_checks.dev import get_docker_hostname - HERE = os.path...
Fix aerospike tests (#<I>) * Increase warmup time * Add warmup condition * Add network_mode * Change network * Use <I> * Update host value with <I> * Ipv6 * Use localhost * Add warm up condition for environment * Fix warmup * Remove check run from warmup * Fix e2e * Cleanup
py
diff --git a/cosmic_ray/cli.py b/cosmic_ray/cli.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/cli.py +++ b/cosmic_ray/cli.py @@ -8,6 +8,7 @@ import json import logging import os import pprint +import subprocess import sys import docopt_subcommands as dsc @@ -128,8 +129,17 @@ options: else: baseli...
Running baseline in subprocess for timing. This more closely resembles what we do with worker subprocesses, so the timings are mor accurate.
py
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py index <HASH>..<HASH> 100644 --- a/openquake/engine/engine.py +++ b/openquake/engine/engine.py @@ -346,6 +346,10 @@ def create_jobs(job_inis, loglvl, kw): the logging. """ dicts = [] + fmt = '[%(asctime)s %(levelname)s] %(message)s' +...
Better logging [skip CI]
py
diff --git a/profiling/__main__.py b/profiling/__main__.py index <HASH>..<HASH> 100644 --- a/profiling/__main__.py +++ b/profiling/__main__.py @@ -228,9 +228,13 @@ def spawn(mode, func, *args, **kwargs): return spawn_thread(func, *args, **kwargs) elif mode == 'gevent': import gevent + impo...
Monkey-patch select and socket when spawning server by gevent or eventlet
py
diff --git a/tests/xmlrpc.py b/tests/xmlrpc.py index <HASH>..<HASH> 100755 --- a/tests/xmlrpc.py +++ b/tests/xmlrpc.py @@ -159,6 +159,10 @@ class NipapXmlTest(unittest.TestCase): res = s.search_vrf({ 'auth': ad, 'query': q }) self.assertEquals(res['result'], [ attr, ], 'Search result from regex match ...
Added one smart_search_vrf unit test Part of #<I>
py
diff --git a/pyArango/query.py b/pyArango/query.py index <HASH>..<HASH> 100644 --- a/pyArango/query.py +++ b/pyArango/query.py @@ -21,7 +21,7 @@ class RawCursor(object) : "returns the next batch" r = self.connection.session.put(self.URL) data = r.json() - if r.status_code == 400 : + ...
Handle cursor <I> during batch processing
py
diff --git a/tests/js_coverage_tool.py b/tests/js_coverage_tool.py index <HASH>..<HASH> 100644 --- a/tests/js_coverage_tool.py +++ b/tests/js_coverage_tool.py @@ -48,6 +48,9 @@ def combine_report(args): Combine all of the intermediate coverage files from each js test, and then report them into the desired out...
Fix bug uncovered by travis build process
py
diff --git a/pyca/ui/__init__.py b/pyca/ui/__init__.py index <HASH>..<HASH> 100644 --- a/pyca/ui/__init__.py +++ b/pyca/ui/__init__.py @@ -72,7 +72,9 @@ def serve_image(image_id): filepath = os.path.abspath(filepath) if os.path.isfile(filepath): directory, filename = filepath.rsplit('/', ...
Prevent Caching of Preview Image This patch prevents the preview image from being cached in Chrome and potentially other browsers by sending a no-cache HTTP header.
py
diff --git a/icrawler/builtin/bing.py b/icrawler/builtin/bing.py index <HASH>..<HASH> 100644 --- a/icrawler/builtin/bing.py +++ b/icrawler/builtin/bing.py @@ -4,7 +4,7 @@ import re import six from bs4 import BeautifulSoup -from six.moves import html_parser +import html from icrawler import Crawler, Parser, Feede...
Move to newer html unescape Move to `html.unescape` from `html_parser.HTMLParser().unescape`. `html_parser.HTMLParser().unescape` has been deprecated for a while and has been removed in <I>. Fixes <URL>
py
diff --git a/scripts/new_version.py b/scripts/new_version.py index <HASH>..<HASH> 100755 --- a/scripts/new_version.py +++ b/scripts/new_version.py @@ -12,12 +12,17 @@ def split_version(s): return tuple(int(i) for i in s.split('.')) -def new_version(new_version_string, comment): +def new_version(comment, new_ve...
Automatically guess version in scripts/new_version.py
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -224,10 +224,11 @@ class DisaggregationCalculator(classical.ClassicalCalculator): ...
Fixed disaggregation demo Former-commit-id: <I>c<I>f6a<I>ee0cf6ee8d7ba4aad9c<I>d<I>
py
diff --git a/scripts/worker.py b/scripts/worker.py index <HASH>..<HASH> 100755 --- a/scripts/worker.py +++ b/scripts/worker.py @@ -64,8 +64,8 @@ class SubmissionHandler(object): args = shlex.split(command) # allow some programs executable = None - if args[0] not in ('bash', 'python', '...
Add head and tail commands to allowable programs.
py
diff --git a/src/pybel/struct/mutation/utils.py b/src/pybel/struct/mutation/utils.py index <HASH>..<HASH> 100644 --- a/src/pybel/struct/mutation/utils.py +++ b/src/pybel/struct/mutation/utils.py @@ -3,7 +3,7 @@ import networkx as nx from ..filters import filter_edges -from ..pipeline import in_place_transformation,...
Tag expand_edge_filter with uni_in_place_transformation
py
diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index <HASH>..<HASH> 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -37,20 +37,20 @@ class TestPipenv(): assert delegator.run('touch Pipfile').return_code == 0 assert delegator.run('pipenv --python python').return_code == 0 - ...
pick a <I> compatible dependency for test
py
diff --git a/pysat/instruments/nasa_CDAWeb_template.py b/pysat/instruments/nasa_CDAWeb_template.py index <HASH>..<HASH> 100644 --- a/pysat/instruments/nasa_CDAWeb_template.py +++ b/pysat/instruments/nasa_CDAWeb_template.py @@ -104,11 +104,6 @@ def load(fnames, tag=None, sat_id=None): return cdf.to_pysat() ...
Cleaned docstring in template for NASA CDAWeb CDF data
py
diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py index <HASH>..<HASH> 100644 --- a/jupyter_server_proxy/handlers.py +++ b/jupyter_server_proxy/handlers.py @@ -7,7 +7,7 @@ Some original inspiration from https://github.com/senko/tornado-proxy import inspect import socket import os -from...
Quote proxied_path to make it a safe URL (fixes #<I>)
py
diff --git a/tensorpack/predict/base.py b/tensorpack/predict/base.py index <HASH>..<HASH> 100644 --- a/tensorpack/predict/base.py +++ b/tensorpack/predict/base.py @@ -158,7 +158,7 @@ class OfflinePredictor(OnlinePredictor): input = PlaceholderInput() input.setup(config.model.get_inputs_desc())...
fix predictor build graph (#<I>)
py
diff --git a/tests/test_pypln.py b/tests/test_pypln.py index <HASH>..<HASH> 100644 --- a/tests/test_pypln.py +++ b/tests/test_pypln.py @@ -55,7 +55,6 @@ class PyPLNTest(unittest.TestCase): def test_raise_an_error_if_auth_is_not_str_or_tuple(self): """If the `auth` argument is not a tuple (for basic auth) ...
Remove unnecessary line on tests (credentials)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ setup( name='django-thumbor', version='0.1', description='A django application to resize images using the thumbor service', + long_description=open('README.rst').read(), author=u'Enrico Bati...
Added description based on the readme to the setup script.
py
diff --git a/eth_abi/abi.py b/eth_abi/abi.py index <HASH>..<HASH> 100644 --- a/eth_abi/abi.py +++ b/eth_abi/abi.py @@ -50,6 +50,8 @@ HEX_CHARS = b'1234567890abcdef' def is_hex_encoded_value(v): + if v == b'': + return False if not remove_0x_prefix(force_bytes(v)).lower().strip(HEX_CHARS) == b'': ...
do not warn about hex input on b''
py
diff --git a/cumulusci/utils/yaml/cumulusci_yml.py b/cumulusci/utils/yaml/cumulusci_yml.py index <HASH>..<HASH> 100644 --- a/cumulusci/utils/yaml/cumulusci_yml.py +++ b/cumulusci/utils/yaml/cumulusci_yml.py @@ -4,7 +4,7 @@ import yaml from io import StringIO from logging import getLogger from typing import IO, Text ...
catch MarkedYAMLError
py
diff --git a/salt/netapi/rest_cherrypy/app.py b/salt/netapi/rest_cherrypy/app.py index <HASH>..<HASH> 100644 --- a/salt/netapi/rest_cherrypy/app.py +++ b/salt/netapi/rest_cherrypy/app.py @@ -1054,6 +1054,7 @@ class LowDataAdapter(object): else: yield ret + @cherrypy.config(**{'tools.s...
No need to send a session cookie when GET'ing the root URL Best not to send this to JavaScript SPAs when loading for the first time since XmlHttpRequest will use it by default (fetch is an opt-in though).
py
diff --git a/xbmcswift2/cli/console.py b/xbmcswift2/cli/console.py index <HASH>..<HASH> 100644 --- a/xbmcswift2/cli/console.py +++ b/xbmcswift2/cli/console.py @@ -11,7 +11,10 @@ def get_max_len(items): '''Returns the max of the lengths for the provided items''' - return max(len(item) for item in items) + ...
Fix for 0 ListItems in CLI. Close #<I>.
py
diff --git a/featurex/extractors/image.py b/featurex/extractors/image.py index <HASH>..<HASH> 100644 --- a/featurex/extractors/image.py +++ b/featurex/extractors/image.py @@ -180,10 +180,8 @@ class ClarifaiFeaturesExtractor(ImageExtractor): raise ValueError("A valid Clarifai API APP_ID and APP_SECRET" ...
simpler way to do app_id and app_secret
py
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/bokeh/plot.py +++ b/holoviews/plotting/bokeh/plot.py @@ -33,7 +33,7 @@ class BokehPlot(DimensionedPlot): height = param.Integer(default=300, doc=""" Height of the plot in p...
Disable shared datasources on Layouts by default
py
diff --git a/pyes/query.py b/pyes/query.py index <HASH>..<HASH> 100644 --- a/pyes/query.py +++ b/pyes/query.py @@ -1383,10 +1383,10 @@ class IdsQuery(Query): data = {} if self.type is not None: data['type'] = self.type - if isinstance(self.values, basestring): - data['va...
IdsQuery: check for list instance, not basestring Ids may be strings, ints, whatever. Better to check if 'values' parameter is a list, if not, wrap the value into a single-element list.
py
diff --git a/spyder_kernels/console/shell.py b/spyder_kernels/console/shell.py index <HASH>..<HASH> 100644 --- a/spyder_kernels/console/shell.py +++ b/spyder_kernels/console/shell.py @@ -85,12 +85,13 @@ class SpyderShell(ZMQInteractiveShell): # --- For Pdb namespace integration def set_pdb_configuration(self,...
Update spyder_kernels/console/shell.py
py
diff --git a/ImagingReso/_utilities.py b/ImagingReso/_utilities.py index <HASH>..<HASH> 100644 --- a/ImagingReso/_utilities.py +++ b/ImagingReso/_utilities.py @@ -51,7 +51,7 @@ def download_from_github(fname, path): print("Local file '{}' kept without overwriting.".format(fname)) # Copy file to ...
removed 'end=' in print
py
diff --git a/samples/snippets/webhook.py b/samples/snippets/webhook.py index <HASH>..<HASH> 100644 --- a/samples/snippets/webhook.py +++ b/samples/snippets/webhook.py @@ -14,6 +14,9 @@ # returns fullfillment response for dialogflow detect_intent call # [START dialogflow_webhook] + +# TODO: change the default Entry ...
docs(samples): Added comments (#<I>) * docs(samples): Added comments * changed comment
py
diff --git a/bedup/filesystem.py b/bedup/filesystem.py index <HASH>..<HASH> 100644 --- a/bedup/filesystem.py +++ b/bedup/filesystem.py @@ -438,8 +438,13 @@ class WholeFS(object): ).splitlines(): dev, label, uuid = BLKID_RE.match(line).groups() uuid = UUID(hex=uuid.decode('ascii')) - ...
Handle missing labels and non-ascii labels. Closes #3.
py
diff --git a/gns3server/version.py b/gns3server/version.py index <HASH>..<HASH> 100644 --- a/gns3server/version.py +++ b/gns3server/version.py @@ -23,8 +23,8 @@ # or negative for a release candidate or beta (after the base version # number has been incremented) -__version__ = "2.2.7" -__version_info__ = (2, 2, 7, 0...
Development on <I>dev1
py
diff --git a/photutils/segmentation/core.py b/photutils/segmentation/core.py index <HASH>..<HASH> 100644 --- a/photutils/segmentation/core.py +++ b/photutils/segmentation/core.py @@ -298,6 +298,14 @@ class SegmentationImage: return find_objects(self._data) @lazyproperty + def background_area(self): +...
Add background_area property for segmentation image
py
diff --git a/moban/file_system.py b/moban/file_system.py index <HASH>..<HASH> 100644 --- a/moban/file_system.py +++ b/moban/file_system.py @@ -114,6 +114,7 @@ read_binary = read_bytes @log_fs_failure def write_bytes(filename, bytes_content): + filename = to_unicode(filename) if "zip://" in filename: ...
:shirt: pyfs2 on python 2 caught non-unicode again. #<I>
py
diff --git a/satpy/version.py b/satpy/version.py index <HASH>..<HASH> 100644 --- a/satpy/version.py +++ b/satpy/version.py @@ -23,4 +23,4 @@ """Version file. """ -__version__ = "0.9.2a0.dev0" +__version__ = "0.10.0a0.dev0"
Update version to <I>a0.dev0
py
diff --git a/tests/test_sysconfig.py b/tests/test_sysconfig.py index <HASH>..<HASH> 100644 --- a/tests/test_sysconfig.py +++ b/tests/test_sysconfig.py @@ -15,7 +15,8 @@ class SysconfigTestCase(unittest.TestCase): def test_get_python_lib(self): lib_dir = sysconfig.get_python_lib() - self.assert_(o...
Disabled one test that is failing on Unix
py
diff --git a/popquotes/pmxbot.py b/popquotes/pmxbot.py index <HASH>..<HASH> 100644 --- a/popquotes/pmxbot.py +++ b/popquotes/pmxbot.py @@ -12,14 +12,14 @@ def bartletts(lib, nick, qsearch): qsearch = qsearch.strip() if nick == 'pmxbot': qt, i, n = qs.quoteLookup() - if qt: - if qt.find(':', 0, 15) > -1: - ...
Less nesting, clearer logic
py
diff --git a/torchvision/datasets/__init__.py b/torchvision/datasets/__init__.py index <HASH>..<HASH> 100644 --- a/torchvision/datasets/__init__.py +++ b/torchvision/datasets/__init__.py @@ -17,6 +17,7 @@ from .imagenet import ImageNet from .caltech import Caltech101, Caltech256 from .celeba import CelebA from .sbd ...
Expose VisionDataSet class so it can be modified (#<I>)
py
diff --git a/tests/common/test_utils.py b/tests/common/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/common/test_utils.py +++ b/tests/common/test_utils.py @@ -1,7 +1,7 @@ +import threading import time from iceqube.common.utils import InfiniteLoopThread -from iceqube import threading class TestBaseClose...
use actual threading module for a test involving threading specific behaviour
py
diff --git a/infoqscraper/presentation.py b/infoqscraper/presentation.py index <HASH>..<HASH> 100644 --- a/infoqscraper/presentation.py +++ b/infoqscraper/presentation.py @@ -228,6 +228,10 @@ class Downloader(object): DownloadFailedException is raised if some resources cannot be fetched. """ + ...
Better --overwrite handling. It makes no sense wasting time and bandwidth if the file already exist. It is better to check if the file exist before doing anything
py
diff --git a/grimoire_elk/ocean/elastic.py b/grimoire_elk/ocean/elastic.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/ocean/elastic.py +++ b/grimoire_elk/ocean/elastic.py @@ -263,7 +263,9 @@ class ElasticOcean(object): else: # If using a perceval backends always filter by repository ...
[filter] All filters must be always returned as dicts and converted to strings later if needed.
py
diff --git a/abydos/distance/_flexmetric.py b/abydos/distance/_flexmetric.py index <HASH>..<HASH> 100644 --- a/abydos/distance/_flexmetric.py +++ b/abydos/distance/_flexmetric.py @@ -178,14 +178,19 @@ class FlexMetric(_Distance): for j in range(1, tar_len + 1): d_mat[0, j] = d_mat[0, j - 1] + self...
adjusted to match casing differences as matches within the same class
py
diff --git a/gubernator/filters.py b/gubernator/filters.py index <HASH>..<HASH> 100644 --- a/gubernator/filters.py +++ b/gubernator/filters.py @@ -152,7 +152,7 @@ def do_render_status(payload, user): for ctx, (state, _url, desc) in payload.get('status', {}).items(): if ctx == 'Submit Queue' and state ==...
Fix pending state now that the SQ is using a different status message.
py
diff --git a/tk_tools/version.py b/tk_tools/version.py index <HASH>..<HASH> 100644 --- a/tk_tools/version.py +++ b/tk_tools/version.py @@ -1 +1 @@ -__version__ = '0.0.1' \ No newline at end of file +__version__ = '0.1.0'
Updating version in preparation for release
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ if __name__ == '__main__': ), install_requires=( 'gevent>1,<2', - 'paramiko>1,<2', + 'paramiko>1,<3', 'docopt<1', 'colorama<1', ...
Enable paramiko 2+ (works a charm, slight speed boost!).
py
diff --git a/nodeconductor/iaas/backend/openstack.py b/nodeconductor/iaas/backend/openstack.py index <HASH>..<HASH> 100644 --- a/nodeconductor/iaas/backend/openstack.py +++ b/nodeconductor/iaas/backend/openstack.py @@ -276,14 +276,14 @@ class OpenStackBackend(object): try: session = self.create_te...
Minor refactor - NC-<I>
py
diff --git a/wanikani/cli.py b/wanikani/cli.py index <HASH>..<HASH> 100644 --- a/wanikani/cli.py +++ b/wanikani/cli.py @@ -91,6 +91,7 @@ class Upcoming(Subcommand): self.parser.add_argument('-l', '--limit', type=int) self.parser.add_argument('-b', '--blocker', action='store_true') self.parser...
Support collapsing to a single day for 'wk upcoming'
py
diff --git a/auto_changelog/repository.py b/auto_changelog/repository.py index <HASH>..<HASH> 100644 --- a/auto_changelog/repository.py +++ b/auto_changelog/repository.py @@ -213,7 +213,7 @@ class GitRepository(RepositoryInterface): def _parse_conventional_commit(message: str) -> Tuple[str, str, str, str, str]: ...
fix(regex): accept empty additional commit body
py
diff --git a/alertaclient/auth/azure.py b/alertaclient/auth/azure.py index <HASH>..<HASH> 100644 --- a/alertaclient/auth/azure.py +++ b/alertaclient/auth/azure.py @@ -9,10 +9,11 @@ def login(client, azure_tenant, client_id): redirect_uri = 'http://localhost:9004' url = ( - 'https://login.microsoftonl...
Update Azure login to use OpenID Connect (#<I>)
py
diff --git a/aiogram/dispatcher/filters/builtin.py b/aiogram/dispatcher/filters/builtin.py index <HASH>..<HASH> 100644 --- a/aiogram/dispatcher/filters/builtin.py +++ b/aiogram/dispatcher/filters/builtin.py @@ -79,6 +79,9 @@ class Command(Filter): @staticmethod async def check_command(message: types.Message...
Prevent to trigger command filter with non-text messages
py
diff --git a/nipap-cli/nipap_cli/nipap_cli.py b/nipap-cli/nipap_cli/nipap_cli.py index <HASH>..<HASH> 100755 --- a/nipap-cli/nipap_cli/nipap_cli.py +++ b/nipap-cli/nipap_cli/nipap_cli.py @@ -883,6 +883,8 @@ def modify_pool(arg, opts): print "Pool %s saved." % p.name + + def grow_pool(arg, opts): """ Expa...
Whitespace: Add some empty lines above methods
py
diff --git a/moran.py b/moran.py index <HASH>..<HASH> 100644 --- a/moran.py +++ b/moran.py @@ -91,8 +91,8 @@ class Moran: >>> f=pysal.open("../examples/sids2.dbf") >>> SIDR=np.array(f.by_col("SIDR74")) >>> mi=pysal.Moran(SIDR,w) - >>> mi.I - 0.24772519320480135 + >>> "%6.4f"%mi.I + '0.2477' ...
- fixing precision/truncation
py