diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/docs/source/generate_configs.py b/docs/source/generate_configs.py index <HASH>..<HASH> 100755 --- a/docs/source/generate_configs.py +++ b/docs/source/generate_configs.py @@ -22,15 +22,13 @@ NOTE = """ """ -def rewrite_entries(config, path, specpath, sec=None, sort=False): +def rewrite_entries(config, ...
docs: ensure configs are sorted as well
py
diff --git a/examples/tenant_tutorial/tenant_tutorial/settings.py b/examples/tenant_tutorial/tenant_tutorial/settings.py index <HASH>..<HASH> 100644 --- a/examples/tenant_tutorial/tenant_tutorial/settings.py +++ b/examples/tenant_tutorial/tenant_tutorial/settings.py @@ -156,7 +156,15 @@ TENANT_MODEL = "customers.Client...
Explicitly define INSTALLED_APPS in settings.py
py
diff --git a/pyfakefs/tests/fake_os_test.py b/pyfakefs/tests/fake_os_test.py index <HASH>..<HASH> 100644 --- a/pyfakefs/tests/fake_os_test.py +++ b/pyfakefs/tests/fake_os_test.py @@ -4711,9 +4711,13 @@ class FakeScandirTest(FakeOsModuleTestBase): [f.path for f in self.scandir(link_path)]) ...
Skip RealScandirTest.test_inode if running in Docker container - fails there for unknown reason
py
diff --git a/seleniumbase/fixtures/constants.py b/seleniumbase/fixtures/constants.py index <HASH>..<HASH> 100755 --- a/seleniumbase/fixtures/constants.py +++ b/seleniumbase/fixtures/constants.py @@ -48,6 +48,11 @@ class Dashboard: DASH_PIE_PNG_3 = encoded_images.DASH_PIE_PNG_3 # Faster than CDN +class MultiBr...
Add lock files for repairing ChromeDriver in multi-process mode
py
diff --git a/ontquery/terms.py b/ontquery/terms.py index <HASH>..<HASH> 100644 --- a/ontquery/terms.py +++ b/ontquery/terms.py @@ -110,6 +110,9 @@ class OntId(str): # TODO all terms singletons to prevent nastyness def __new__(cls, curie_or_iri=None, prefix=None, suffix=None, curie=None, iri=None, **kwargs): +...
terms.__new__ don't run twice on same type
py
diff --git a/cobe/model.py b/cobe/model.py index <HASH>..<HASH> 100644 --- a/cobe/model.py +++ b/cobe/model.py @@ -121,9 +121,9 @@ class Model(object): # Create a reverse n-gram key from a count key as returned by # _tokens_count_key. - # key is "t" + token1token2token3. Rotate its grams to -...
Improve the comment in _tokens_reverse_key
py
diff --git a/labware/microplates.py b/labware/microplates.py index <HASH>..<HASH> 100644 --- a/labware/microplates.py +++ b/labware/microplates.py @@ -27,16 +27,4 @@ class Microplate(GridContainer): Coordinates should represent the center and near-bottom of well A1 with the pipette tip in place. ...
Microplate subsets are obsolete now with the new containers.
py
diff --git a/salt/modules/linux_lvm.py b/salt/modules/linux_lvm.py index <HASH>..<HASH> 100644 --- a/salt/modules/linux_lvm.py +++ b/salt/modules/linux_lvm.py @@ -206,8 +206,10 @@ def pvcreate(devices, override=True, **kwargs): cmd = ['pvcreate'] for device in devices.split(','): if not os.path.exist...
Bugfix: use exceptions for failure in pvcreate
py
diff --git a/werkzeug/contrib/cache.py b/werkzeug/contrib/cache.py index <HASH>..<HASH> 100644 --- a/werkzeug/contrib/cache.py +++ b/werkzeug/contrib/cache.py @@ -471,15 +471,15 @@ class RedisCache(BaseCache): :param key_prefix: A prefix that should be added to all keys. """ - def __init__(self, host='lo...
Added password support to RedisCache.
py
diff --git a/tests/utils.py b/tests/utils.py index <HASH>..<HASH> 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -6,9 +6,13 @@ TEST_DIR = path.dirname(__file__) def load_snippet(filename): """Helper to fetch in the content of a test snippet""" - return open(path.join(TEST_DIR, 'test_snippets', filename)...
Suppress warning "ResourceWarning: unclosed file"
py
diff --git a/inginious/frontend/pages/tasks.py b/inginious/frontend/pages/tasks.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/pages/tasks.py +++ b/inginious/frontend/pages/tasks.py @@ -38,6 +38,11 @@ class BaseTaskPage(object): def set_selected_submission(self, course, task, submissionid): sub...
Fix error when admin attempt to set user eval submission
py
diff --git a/tests/unit/modules/timezone_test.py b/tests/unit/modules/timezone_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/timezone_test.py +++ b/tests/unit/modules/timezone_test.py @@ -66,6 +66,9 @@ class TimezoneTestCase(TestCase): 'os': 'Debian'...
Fix issue that #<I> exposed in timezone_test
py
diff --git a/utils/string_parsers.py b/utils/string_parsers.py index <HASH>..<HASH> 100644 --- a/utils/string_parsers.py +++ b/utils/string_parsers.py @@ -23,7 +23,7 @@ def colon_separated_string_to_dict(string): line_data = line.split(':') if len(line_data) > 1: - dictionary[line_data[0]...
Strip moved to the parser as it is more useful there
py
diff --git a/qds_sdk/connection.py b/qds_sdk/connection.py index <HASH>..<HASH> 100644 --- a/qds_sdk/connection.py +++ b/qds_sdk/connection.py @@ -140,7 +140,7 @@ class Connection: elif code == 422: sys.stderr.write(response.text + "\n") raise ResourceInvalid(response) - elif c...
Add retries for GET calls which return <I> or <I> errors.
py
diff --git a/tohu/base_NEW.py b/tohu/base_NEW.py index <HASH>..<HASH> 100644 --- a/tohu/base_NEW.py +++ b/tohu/base_NEW.py @@ -1,3 +1,4 @@ +from abc import ABCMeta, abstractmethod from itertools import islice from random import Random from tqdm import tqdm @@ -33,9 +34,6 @@ class SeedGenerator: return self....
Make TohuUltraBaseGenerator an abstract base class; mark __next__() and reset() as abstract methods
py
diff --git a/bitcash/network/services.py b/bitcash/network/services.py index <HASH>..<HASH> 100644 --- a/bitcash/network/services.py +++ b/bitcash/network/services.py @@ -143,6 +143,14 @@ class BitcoinDotComAPI(): return r.json()['transactions'] @classmethod + def get_transactions_testnet(cls, addres...
Added missing get_transactions_testnet BitcoinDotComAPI
py
diff --git a/dvc/cache/base.py b/dvc/cache/base.py index <HASH>..<HASH> 100644 --- a/dvc/cache/base.py +++ b/dvc/cache/base.py @@ -273,7 +273,7 @@ class CloudCache: to_info = self.tree.path_info / tmp_fname("") self.tree.upload(from_info, to_info, no_progress_bar=True) - hash_info = self.tree...
cache: use get_file_hash instead of get_hash (#<I>) This is what we've been doing before. No need to try to pull it up from the state db, as this is a clearly newly generated file that will get deleted.
py
diff --git a/samcli/local/docker/lambda_container.py b/samcli/local/docker/lambda_container.py index <HASH>..<HASH> 100644 --- a/samcli/local/docker/lambda_container.py +++ b/samcli/local/docker/lambda_container.py @@ -181,9 +181,9 @@ class LambdaContainer(Container): + debug_args_list \ ...
chore: Update JVM size params to match docker-lambda (#<I>)
py
diff --git a/rtbhouse_sdk/reports_api.py b/rtbhouse_sdk/reports_api.py index <HASH>..<HASH> 100644 --- a/rtbhouse_sdk/reports_api.py +++ b/rtbhouse_sdk/reports_api.py @@ -112,6 +112,9 @@ class ReportsApiSession: def get_rtb_conversions(self, adv_hash, day_from, day_to): deduplicated = self._get('/advert...
Update reports_api.py minor change
py
diff --git a/src/binwalk/core/module.py b/src/binwalk/core/module.py index <HASH>..<HASH> 100644 --- a/src/binwalk/core/module.py +++ b/src/binwalk/core/module.py @@ -536,11 +536,16 @@ class Modules(object): def _set_arguments(self, argv=[], kargv={}): for (k,v) in iterator(kargv): k = self._...
Fixed bug which prevented multiple API arguments from being passed as kwargs
py
diff --git a/underwear/run_underwear.py b/underwear/run_underwear.py index <HASH>..<HASH> 100644 --- a/underwear/run_underwear.py +++ b/underwear/run_underwear.py @@ -71,6 +71,10 @@ def deploy(args): options.sudo_user = options.sudo_user or C.DEFAULT_SUDO_USER extra_vars={} + + skip_tags = options.sk...
updating script to include ansible playbook execution hook
py
diff --git a/salt/runners/manage.py b/salt/runners/manage.py index <HASH>..<HASH> 100644 --- a/salt/runners/manage.py +++ b/salt/runners/manage.py @@ -5,15 +5,16 @@ and what hosts are down ''' # Import python libs -from __future__ import print_function -from __future__ import absolute_import +from __future__ import...
Use `url_open` from six
py
diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index <HASH>..<HASH> 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -67,7 +67,7 @@ class SMTP(object): username = self.conf.get('username') password = self.conf.get('password') - if username is not N...
Correct auth without password or username. If no username is set, returns an empty string. So the test `username is not None` is always True. Idem for password. This can lead to authentication problems. This commit fixes the test to `if username and password` as it was in the previous version.
py
diff --git a/test/helpers.py b/test/helpers.py index <HASH>..<HASH> 100644 --- a/test/helpers.py +++ b/test/helpers.py @@ -141,14 +141,18 @@ class RunOnceTask(luigi.Task): class LuigiTestCase(unittest.TestCase): """ Tasks registred within a test case will get unregistered in a finalizer + + Instance cache...
Updates LuigiTestCase to clear instance caches before and after runs
py
diff --git a/src/python/dxpy/__init__.py b/src/python/dxpy/__init__.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/__init__.py +++ b/src/python/dxpy/__init__.py @@ -111,11 +111,11 @@ environment variables: .. envvar:: HTTP_PROXY - HTTP proxy, in the form 'hostname:port' (e.g. '10.10.1.10:3128') + HTTP pr...
Add protocol to proxy variable documentation; not specifying the protocol breaks some versions of requests/openssl
py
diff --git a/indra/assemblers/pysb_assembler.py b/indra/assemblers/pysb_assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/pysb_assembler.py +++ b/indra/assemblers/pysb_assembler.py @@ -392,7 +392,7 @@ def set_extended_initial_condition(model, monomer, value=0): if site in monomer.site_states: ...
Fix extended initial value setting for binding sites in PySB Assembler
py
diff --git a/flake8_future_import.py b/flake8_future_import.py index <HASH>..<HASH> 100755 --- a/flake8_future_import.py +++ b/flake8_future_import.py @@ -166,7 +166,7 @@ def main(args): return parser = argparse.ArgumentParser() choices = set(10 + feature.index for feature in FEATURES.values()) - ...
Fix defining upper error codes The upper error codes (`FI<I>` and greater) accidentally used `FI<I>` and greater.
py
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py index <HASH>..<HASH> 100644 --- a/hvac/v1/__init__.py +++ b/hvac/v1/__init__.py @@ -162,7 +162,7 @@ class Client(object): payload = { 'list': True } - return self._adapter.get('/v1/{}'.format(path), params=paylo...
'list' function python <I> compatibility (#<I>) Other functions use '/v1/{0}' format, 'list' should as well. The {} format doesn't work in python <I>.
py
diff --git a/km3pipe/pumps/clb.py b/km3pipe/pumps/clb.py index <HASH>..<HASH> 100644 --- a/km3pipe/pumps/clb.py +++ b/km3pipe/pumps/clb.py @@ -46,7 +46,7 @@ class CLBPump(Pump): except struct.error: pass self.rewind_file() - log.info("Found {0} CLB UDP packets.".format(len(self.pac...
Changes log.info to print for found packets
py
diff --git a/pyblish_qml/__main__.py b/pyblish_qml/__main__.py index <HASH>..<HASH> 100644 --- a/pyblish_qml/__main__.py +++ b/pyblish_qml/__main__.py @@ -1,4 +1,4 @@ import sys import app -sys.exit(app.main()) +sys.exit(app.cli())
Updating __main__.py to new CLI
py
diff --git a/moneyfield/fields.py b/moneyfield/fields.py index <HASH>..<HASH> 100644 --- a/moneyfield/fields.py +++ b/moneyfield/fields.py @@ -21,7 +21,7 @@ __all__ = ['MoneyField', 'MoneyModelForm'] logger = logging.getLogger(__name__) -REGEX_CURRENCY_CODE = re.compile("[A-Z]{3}") +REGEX_CURRENCY_CODE = re.compil...
Add start and end to currency validation regex
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -35,6 +35,7 @@ if rtd: sys.modules.update((mod_name, unittest.mock.Mock()) for mod_name in MOCK_MODULES) # Mocking certain classes causes subclasses not to be documented properly sys.modules['spead2....
Fix a compilation error on readthedocs
py
diff --git a/qiskit/_quantumprogram.py b/qiskit/_quantumprogram.py index <HASH>..<HASH> 100644 --- a/qiskit/_quantumprogram.py +++ b/qiskit/_quantumprogram.py @@ -383,7 +383,8 @@ class QuantumProgram(object): max_credits is the credits of the experiments. basis_gates are the base gates by default are:...
fix call to compile() in execute().
py
diff --git a/subnuker.py b/subnuker.py index <HASH>..<HASH> 100644 --- a/subnuker.py +++ b/subnuker.py @@ -126,7 +126,7 @@ class AeidonProject: for match in matches: os.system('clear') - print(self.project.main_file.read()[match].main_text) + print(self.project.subtitles[ma...
Fix bug encountered when subtitles are mis-ordered
py
diff --git a/source/rafcon/mvc/history.py b/source/rafcon/mvc/history.py index <HASH>..<HASH> 100755 --- a/source/rafcon/mvc/history.py +++ b/source/rafcon/mvc/history.py @@ -234,7 +234,7 @@ def insert_state_meta_data(meta_dict, state_model, with_parent_linkage=True, wit for state_id, state_m in state_model.st...
Compare string with "!=" instead of "is not"
py
diff --git a/malcolm/modules/pandablocks/parts/pandablocksmaker.py b/malcolm/modules/pandablocks/parts/pandablocksmaker.py index <HASH>..<HASH> 100644 --- a/malcolm/modules/pandablocks/parts/pandablocksmaker.py +++ b/malcolm/modules/pandablocks/parts/pandablocksmaker.py @@ -175,7 +175,9 @@ class PandABlocksMaker(object...
Put PandA bit_mux and pos_mux labels in a more sensible order
py
diff --git a/timepiece/migrations/0035_billable_to_develop.py b/timepiece/migrations/0035_billable_to_develop.py index <HASH>..<HASH> 100644 --- a/timepiece/migrations/0035_billable_to_develop.py +++ b/timepiece/migrations/0035_billable_to_develop.py @@ -9,17 +9,17 @@ class Migration(DataMigration): def forwards(s...
change non-billable to administration in migration <I>
py
diff --git a/eli5/formatters/image.py b/eli5/formatters/image.py index <HASH>..<HASH> 100644 --- a/eli5/formatters/image.py +++ b/eli5/formatters/image.py @@ -104,6 +104,7 @@ def format_as_image(expl, # type: Explanation # no heatmaps return image else: + assert len(expl.targets) == 1 ...
(keras image) Assert that we have 1 target in explanation only
py
diff --git a/scripts/importer/mtasks/general_data.py b/scripts/importer/mtasks/general_data.py index <HASH>..<HASH> 100644 --- a/scripts/importer/mtasks/general_data.py +++ b/scripts/importer/mtasks/general_data.py @@ -170,7 +170,7 @@ def do_ascii(events, stubs, args, tasks, task_obj, log): events[name].add_qu...
BUG: fix formatting for string; introduced error at some point during a regex replacement."
py
diff --git a/amazon/api.py b/amazon/api.py index <HASH>..<HASH> 100644 --- a/amazon/api.py +++ b/amazon/api.py @@ -315,6 +315,19 @@ class AmazonBrowseNode(object): node = node.ancestor return ancestors + @property + def children(self): + """This browse node's children in the browse ...
added the children property in class AmazonBrowseNode
py
diff --git a/rtv/__main__.py b/rtv/__main__.py index <HASH>..<HASH> 100755 --- a/rtv/__main__.py +++ b/rtv/__main__.py @@ -85,15 +85,11 @@ def main(): config.keymap.set_bindings(bindings) if config['copy_config']: - copy_default_config() - return + return copy_default_config() ...
Add $LANG to the log for debugging
py
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py index <HASH>..<HASH> 100644 --- a/spyderlib/plugins/editor.py +++ b/spyderlib/plugins/editor.py @@ -1322,7 +1322,7 @@ class Editor(PluginWidget): for editorstack in self.editorstacks: editorstack.set_codeanalysis_enabl...
Editor/bugfix: toggling code analysis state was broken
py
diff --git a/pyicloud/base.py b/pyicloud/base.py index <HASH>..<HASH> 100644 --- a/pyicloud/base.py +++ b/pyicloud/base.py @@ -101,7 +101,8 @@ class PyiCloudSession(Session): self.cookies.save(ignore_discard=True, ignore_expires=True) LOGGER.debug("Cookies saved to %s", self.service.cookiejar_path) ...
Improved support for <I>s
py
diff --git a/tests/test.py b/tests/test.py index <HASH>..<HASH> 100644 --- a/tests/test.py +++ b/tests/test.py @@ -310,7 +310,7 @@ class DockerClientTest(unittest.TestCase): args = fake_request.call_args self.assertEqual(args[0][0], - 'unix://var/run/docker.sock/v1.6/containe...
Fix unit tests broken by PR #<I> Updates newer unit tests to use the http+unix scheme.
py
diff --git a/git/objects/commit.py b/git/objects/commit.py index <HASH>..<HASH> 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -121,7 +121,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): self.parents = parents if encoding is not None: self.encoding = encoding...
[#<I>] Fixed error serializing programmatically created commits
py
diff --git a/sawtooth_rps/cli.py b/sawtooth_rps/cli.py index <HASH>..<HASH> 100644 --- a/sawtooth_rps/cli.py +++ b/sawtooth_rps/cli.py @@ -39,8 +39,20 @@ def do_list(args, config): client = RPSClient(base_url=url, keyfile=key_file) state = client.get_state() - print state - + print "GAMES:" + for k...
rps list, print information about games
py
diff --git a/paypal/standard/models.py b/paypal/standard/models.py index <HASH>..<HASH> 100644 --- a/paypal/standard/models.py +++ b/paypal/standard/models.py @@ -306,7 +306,12 @@ class PayPalStandardBase(Model): def initialize(self, request): """Store the data we'll need to make the postback from the r...
Handle saving of query the way PayPal needs
py
diff --git a/provider/digitalocean.py b/provider/digitalocean.py index <HASH>..<HASH> 100644 --- a/provider/digitalocean.py +++ b/provider/digitalocean.py @@ -12,10 +12,12 @@ from api.models import Layer REGION_LIST = { - 'san-francisco-1': 'San Francisco 1', - 'amsterdam-1': 'Amsterdam 1', 'new-york-1'...
Added missing DigitalOcean cloud regions.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name='pypromise', - version='0.3', + version='0.4', description='Promises/A+ implementation for Python', long_description=open('README.rst').read(), ...
Updated version to <I>
py
diff --git a/ips_vagrant/models/sites.py b/ips_vagrant/models/sites.py index <HASH>..<HASH> 100644 --- a/ips_vagrant/models/sites.py +++ b/ips_vagrant/models/sites.py @@ -74,7 +74,8 @@ class Domain(Base): """ Domain = cls dname = dname.hostname if hasattr(dname, 'hostname') else dname - ...
Don't create www versions of IP address and localhost domains, don't try and drop undefined databases
py
diff --git a/pyp2rpmlib/filters.py b/pyp2rpmlib/filters.py index <HASH>..<HASH> 100644 --- a/pyp2rpmlib/filters.py +++ b/pyp2rpmlib/filters.py @@ -3,4 +3,10 @@ from pyp2rpmlib import utils def for_python_version(name, version): return utils.rpm_name(name, version) -__all__ = [for_python_version] +def macroed_pk...
Filter for macroing the package name with %{pypi_name}
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals from setuptools import setup, find_packages setup( - name='meteor-json', + name='meteor-ejson', version='1.0.0', packages=find_packages(exclude=['*tests*...
Fix package name in setup.py
py
diff --git a/src/bandersnatch/master.py b/src/bandersnatch/master.py index <HASH>..<HASH> 100644 --- a/src/bandersnatch/master.py +++ b/src/bandersnatch/master.py @@ -15,6 +15,8 @@ class CustomTransport(xmlrpclib.Transport): xmlrpclib.Transport.__init__(self) self.timeout = timeout self.ssl =...
assign attr _connection to Transport object if not defined this assists in Python <I> compatibility. xmlrpclib.Transport has _connection by default beginning in <I>
py
diff --git a/tests/test_mypy.py b/tests/test_mypy.py index <HASH>..<HASH> 100644 --- a/tests/test_mypy.py +++ b/tests/test_mypy.py @@ -103,8 +103,9 @@ class MypyTestCase(unittest.TestCase): 6, 4, vars=( - 'Incompatible return value ty...
Fix a line-too-long lint warning
py
diff --git a/tests/unit/modules/mine_test.py b/tests/unit/modules/mine_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/mine_test.py +++ b/tests/unit/modules/mine_test.py @@ -114,6 +114,7 @@ class MineTestCase(TestCase): 'match.ipcidr': MagicMock(), ...
Mock pillar_pcre for the mine tests
py
diff --git a/cassandra/cluster.py b/cassandra/cluster.py index <HASH>..<HASH> 100644 --- a/cassandra/cluster.py +++ b/cassandra/cluster.py @@ -1636,8 +1636,8 @@ class ResponseFuture(object): self._req_id = req_id return - self._final_exception = NoHostAvailable( - "...
Correctly set final exception when query fails on all hosts Before this change, the Event that notifies listeners that the operation has completed was not being triggered.
py
diff --git a/portend.py b/portend.py index <HASH>..<HASH> 100644 --- a/portend.py +++ b/portend.py @@ -1,5 +1,9 @@ # -*- coding: utf-8 -*- +""" +A simple library for managing the availability of ports. +""" + from __future__ import print_function import time @@ -10,6 +14,7 @@ import sys from jaraco import tim...
Add docstrings and basic tests.
py
diff --git a/sportsref/utils.py b/sportsref/utils.py index <HASH>..<HASH> 100644 --- a/sportsref/utils.py +++ b/sportsref/utils.py @@ -29,8 +29,8 @@ def get_html(url): try: response = requests.get(url) if 400 <= response.status_code < 500: - raise ValueError( - ...
made error message more helpful in get_html
py
diff --git a/pdfminer/image.py b/pdfminer/image.py index <HASH>..<HASH> 100644 --- a/pdfminer/image.py +++ b/pdfminer/image.py @@ -1,9 +1,13 @@ #!/usr/bin/env python2 +import cStringIO +import logging import sys import struct import os, os.path +from PIL import Image +from PIL import ImageChops from pdftypes impor...
Deal with CMYK images by converting them to RGB. PIL does not invert CMYK images as of PIL <I>, so the invert happens in ImageWriter.
py
diff --git a/marrow/mailer/transport/sendmail.py b/marrow/mailer/transport/sendmail.py index <HASH>..<HASH> 100644 --- a/marrow/mailer/transport/sendmail.py +++ b/marrow/mailer/transport/sendmail.py @@ -23,7 +23,13 @@ class SendmailTransport(object): # pragma: no cover def deliver(self, message): # TODO: ...
Include envelope sender in args to sendmail
py
diff --git a/cookiecutter/main.py b/cookiecutter/main.py index <HASH>..<HASH> 100755 --- a/cookiecutter/main.py +++ b/cookiecutter/main.py @@ -14,6 +14,7 @@ library rather than a script. import argparse import os +from .cleanup import remove_repo from .find import find_template from .generate import generate_cont...
Clean up after cloned repo if needed. (partial checkin)
py
diff --git a/fastavro/_write_py.py b/fastavro/_write_py.py index <HASH>..<HASH> 100644 --- a/fastavro/_write_py.py +++ b/fastavro/_write_py.py @@ -498,7 +498,7 @@ def write_union(fo, datum, schema): break else: msg = 'provided union type name %s not found in schema %s' \ - ...
ugh spacing again! PyCharm's auto-spacing is going to be my doom!
py
diff --git a/pyemma/util/_config.py b/pyemma/util/_config.py index <HASH>..<HASH> 100644 --- a/pyemma/util/_config.py +++ b/pyemma/util/_config.py @@ -26,8 +26,6 @@ import warnings from pyemma.util.files import mkdir_p from pyemma.util.exceptions import ConfigDirectoryException -import pkg_resources - # indicate...
[config] do not use pkg_resources delays import by <I> ms!
py
diff --git a/bokeh/server/serverbb.py b/bokeh/server/serverbb.py index <HASH>..<HASH> 100644 --- a/bokeh/server/serverbb.py +++ b/bokeh/server/serverbb.py @@ -64,8 +64,8 @@ def prune(document, temporary_docid=None, delete=False): storage_id = document.docid to_delete = document.prune() if delete: - ...
remnamed to be less confusing
py
diff --git a/denovonear/transcript_sequence_methods.py b/denovonear/transcript_sequence_methods.py index <HASH>..<HASH> 100755 --- a/denovonear/transcript_sequence_methods.py +++ b/denovonear/transcript_sequence_methods.py @@ -52,16 +52,16 @@ class SequenceMethods(object): # quickly find the exon containing th...
fix converting CDS to chrom position on minus strand
py
diff --git a/werkzeug/script.py b/werkzeug/script.py index <HASH>..<HASH> 100644 --- a/werkzeug/script.py +++ b/werkzeug/script.py @@ -262,11 +262,15 @@ def make_shell(init_func=None, banner=None, use_ipython=True): namespace = init_func() if ipython: try: - import IPython ...
add compatibility with ipython <I> first try to import <I> api if that fails try the old api
py
diff --git a/openquake/server/manage.py b/openquake/server/manage.py index <HASH>..<HASH> 100755 --- a/openquake/server/manage.py +++ b/openquake/server/manage.py @@ -22,6 +22,16 @@ if __name__ == "__main__": # the issue is that importing openquake.engine sets a wrong # DJANGO_SETTINGS_MODULE environment vari...
server: fix celeryconfig.py path when server is installed by packages
py
diff --git a/seleniumbase/core/browser_launcher.py b/seleniumbase/core/browser_launcher.py index <HASH>..<HASH> 100755 --- a/seleniumbase/core/browser_launcher.py +++ b/seleniumbase/core/browser_launcher.py @@ -1503,6 +1503,8 @@ def get_local_driver( auto_upgrade_chromedriver = False ...
Auto-upgrade chromedriver on "version must be between"
py
diff --git a/molo/commenting/tests/test_models.py b/molo/commenting/tests/test_models.py index <HASH>..<HASH> 100644 --- a/molo/commenting/tests/test_models.py +++ b/molo/commenting/tests/test_models.py @@ -61,12 +61,12 @@ class MoloCommentTest(TestCase): comment.save() comment_flag = self.mk_comment_...
override the setting for testing rather than overwriting it
py
diff --git a/pypet/utils/helpful_functions.py b/pypet/utils/helpful_functions.py index <HASH>..<HASH> 100644 --- a/pypet/utils/helpful_functions.py +++ b/pypet/utils/helpful_functions.py @@ -321,7 +321,7 @@ def port_to_tcp(port=None): try: addr_list = socket.getaddrinfo(domain_name, None) except Exce...
Trying to fix ZMQ error by replacing localhost with <I>
py
diff --git a/esptool.py b/esptool.py index <HASH>..<HASH> 100755 --- a/esptool.py +++ b/esptool.py @@ -3363,6 +3363,10 @@ ESP8684ROM.BOOTLOADER_IMAGE = ESP8684FirmwareImage class ELFFile(object): SEC_TYPE_PROGBITS = 0x01 SEC_TYPE_STRTAB = 0x03 + SEC_TYPE_INITARRAY = 0x0e + SEC_TYPE_FINIARRAY = 0x0f + +...
ELF parser: recognize flash.rodata as part of IRAM
py
diff --git a/echo.py b/echo.py index <HASH>..<HASH> 100644 --- a/echo.py +++ b/echo.py @@ -245,7 +245,7 @@ class delay_callback(object): for prop in self.props: p = getattr(type(self.instance), prop) - if not isinstance(p, CallbackProperty): + if not isinstance(p, CallbackP...
coverage: added pragma
py
diff --git a/eye/models.py b/eye/models.py index <HASH>..<HASH> 100644 --- a/eye/models.py +++ b/eye/models.py @@ -1,6 +1,8 @@ import collections import inspect +PRIMITIVES = set([int, bool, str, unicode, type(None)]) + class Node(object): @@ -8,15 +10,14 @@ class Node(object): self.context = context ...
be explicit about primitives that aren't traversable
py
diff --git a/looper/models.py b/looper/models.py index <HASH>..<HASH> 100644 --- a/looper/models.py +++ b/looper/models.py @@ -1725,7 +1725,7 @@ class Sample(object): setattr(self, feature, files[0][i] if len(set(f[i] for f in files)) == 1 else None) - if getattr(self, fea...
Don't warn about unmatching properties if input files don't exist
py
diff --git a/tests/test_query_fixture.py b/tests/test_query_fixture.py index <HASH>..<HASH> 100644 --- a/tests/test_query_fixture.py +++ b/tests/test_query_fixture.py @@ -147,6 +147,32 @@ class TestQueryFixture(FixtureTestCase): _rel(5, rels=[2, 4]), ], 5) + def test_query_source(self): + ...
Added test to make sure that the 'source' property is propagated by the fixture data fetcher.
py
diff --git a/asynch2/stream.py b/asynch2/stream.py index <HASH>..<HASH> 100644 --- a/asynch2/stream.py +++ b/asynch2/stream.py @@ -55,8 +55,9 @@ class HTTP2Stream: # Getters async def read_frame(self): - await self._data_frames_available.wait() frame = b'' + if len(self._data_frames) ...
Only wait for frames if none are present and stream is not closed
py
diff --git a/upgrades/workflows_2014_08_12_task_results_to_dict.py b/upgrades/workflows_2014_08_12_task_results_to_dict.py index <HASH>..<HASH> 100644 --- a/upgrades/workflows_2014_08_12_task_results_to_dict.py +++ b/upgrades/workflows_2014_08_12_task_results_to_dict.py @@ -79,6 +79,11 @@ def estimate(): def convert_t...
workflows: upgrade compatibility fix * Fixes compatibility issue in upgrade.
py
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py index <HASH>..<HASH> 100644 --- a/salt/daemons/masterapi.py +++ b/salt/daemons/masterapi.py @@ -855,7 +855,7 @@ class RemoteFuncs(object): fp_.write(load['id']) return ret - def minion_publish(self, load, skip_verify=False): +...
Fix #<I> We should not accept and skip_verify for this function anyway
py
diff --git a/vtki/plotting.py b/vtki/plotting.py index <HASH>..<HASH> 100644 --- a/vtki/plotting.py +++ b/vtki/plotting.py @@ -1514,7 +1514,7 @@ class BasePlotter(object): font_family=None, shadow=False, mapper=None, width=None, height=None, position_x=None, ...
Map opacity on scalar bars to resolve #<I>
py
diff --git a/ding0/examples/example_analyze_single_grid_district.py b/ding0/examples/example_analyze_single_grid_district.py index <HASH>..<HASH> 100644 --- a/ding0/examples/example_analyze_single_grid_district.py +++ b/ding0/examples/example_analyze_single_grid_district.py @@ -24,6 +24,7 @@ __url__ = "https://github.c...
Fix to ensure the pandas df prints all rows and all columns completely instead of only a sample
py
diff --git a/doc/conf.py b/doc/conf.py index <HASH>..<HASH> 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -4,15 +4,15 @@ import os import sys from os.path import dirname, relpath -import flask_mongo_profiler -from flask_mongo_profiler import contrib - # Get the project root dir, which is the parent dir of this cw...
:wheelchair: Move imports down
py
diff --git a/osx/_lightblue.py b/osx/_lightblue.py index <HASH>..<HASH> 100755 --- a/osx/_lightblue.py +++ b/osx/_lightblue.py @@ -23,6 +23,7 @@ import warnings import Foundation import AppKit import objc +from objc import super import _IOBluetooth import _LightAquaBlue
Inquiry for <I> works
py
diff --git a/observer.py b/observer.py index <HASH>..<HASH> 100644 --- a/observer.py +++ b/observer.py @@ -4,6 +4,8 @@ from gevent import event import json import hashlib +from django.db.models import query as django_query + from ws4redis import publisher, redis_store from . import exceptions @@ -35,7 +37,15 @@...
Fixed handling of empty querysets. There are queries which always return an empty result set, because the conditions will never be satisfied. As such, they do not produce a valid SQL statement and must be handled separately.
py
diff --git a/src/paperwork/backend/docimport.py b/src/paperwork/backend/docimport.py index <HASH>..<HASH> 100644 --- a/src/paperwork/backend/docimport.py +++ b/src/paperwork/backend/docimport.py @@ -54,6 +54,12 @@ class SinglePdfImporter(object): """ Import the specified PDF file """ + ...
PDF import: don't import a PDF already imported
py
diff --git a/dependencies/contrib/_pytest.py b/dependencies/contrib/_pytest.py index <HASH>..<HASH> 100644 --- a/dependencies/contrib/_pytest.py +++ b/dependencies/contrib/_pytest.py @@ -2,8 +2,6 @@ from __future__ import absolute_import import pytest -# TODO: `parametrize` function. - def register(injector): ...
Remove development note. Py.test parametrize works with params injector attribute.
py
diff --git a/ansible/modules/hashivault/hashivault_secret_engine.py b/ansible/modules/hashivault/hashivault_secret_engine.py index <HASH>..<HASH> 100644 --- a/ansible/modules/hashivault/hashivault_secret_engine.py +++ b/ansible/modules/hashivault/hashivault_secret_engine.py @@ -113,6 +113,7 @@ def hashivault_secret_eng...
Added var to defirentiate new and updated engines
py
diff --git a/python/rosette/api.py b/python/rosette/api.py index <HASH>..<HASH> 100644 --- a/python/rosette/api.py +++ b/python/rosette/api.py @@ -17,6 +17,7 @@ _ACCEPTABLE_SERVER_VERSION = "0.5" _GZIP_BYTEARRAY = bytearray([0x1F, 0x8b, 0x08]) N_RETRIES = 3 + import sys _IsPy3 = sys.version_info[0] == 3 @@ -123...
RCB-<I> Fix some bugs in server error handling.
py
diff --git a/phonopy/cui/settings.py b/phonopy/cui/settings.py index <HASH>..<HASH> 100644 --- a/phonopy/cui/settings.py +++ b/phonopy/cui/settings.py @@ -509,8 +509,8 @@ class ConfParser(object): self._confs['pm'] = '.true.' if 'is_tetrahedron_method' in arg_list: - if not self._...
Use of tetrahedron is set to true as default in settings.py
py
diff --git a/MAVProxy/modules/mavproxy_calibration.py b/MAVProxy/modules/mavproxy_calibration.py index <HASH>..<HASH> 100644 --- a/MAVProxy/modules/mavproxy_calibration.py +++ b/MAVProxy/modules/mavproxy_calibration.py @@ -73,7 +73,11 @@ class CalibrationModule(mp_module.MPModule): s += "%u%% " % v ...
calibration: show success/failure of magcal
py
diff --git a/invenio_oauth2server/views/settings.py b/invenio_oauth2server/views/settings.py index <HASH>..<HASH> 100644 --- a/invenio_oauth2server/views/settings.py +++ b/invenio_oauth2server/views/settings.py @@ -222,6 +222,9 @@ def token_new(): session['show_personal_access_token'] = True return re...
views: don't render scopes if empty * ADDS check to delete the scopes field from the token form so that it doesn't render if there are no scope choices.
py
diff --git a/spyder/plugins/plots/widgets/tests/test_plots_widgets.py b/spyder/plugins/plots/widgets/tests/test_plots_widgets.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/plots/widgets/tests/test_plots_widgets.py +++ b/spyder/plugins/plots/widgets/tests/test_plots_widgets.py @@ -247,8 +247,16 @@ def test_scroll_...
change expected value of test_scroll_to_select_item.
py
diff --git a/jellyfish/_jellyfish.py b/jellyfish/_jellyfish.py index <HASH>..<HASH> 100644 --- a/jellyfish/_jellyfish.py +++ b/jellyfish/_jellyfish.py @@ -422,7 +422,7 @@ def metaphone(s): elif next == 'h' and nextnext and nextnext not in 'aeiou': i += 1 elif c == 'h': - ...
Rule for H character should be 'Drop H if after vowel and not before a vowel'
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -97,8 +97,8 @@ if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe': #TODO: create an install wizard elif len(sys.argv) >= 2 and sys.argv[1] == 'py2app': os.system('rm -rf build') - os.system('cp -rf data/dist-files...
Setup.py now points to correct mac Qt files.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ setup( zip_safe=True, install_requires=[ 'pyserial==3.2.0', - 'pyserial-asyncio' + 'pyserial-asyncio', 'async_timeout' ], entry_points={
Added async_timeout to requirements
py
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py index <HASH>..<HASH> 100644 --- a/gtdoit/logbook.py +++ b/gtdoit/logbook.py @@ -91,7 +91,7 @@ class IdGenerator: def build_socket(context, socket_type, bind_endpoints=[], connect_endpoints=[]): - socket = contect.socket(socket_type) + socket = context.socket...
Fixing typos in logbook.py This is the first time I am actually executing the code. Hallmark!
py
diff --git a/test_path.py b/test_path.py index <HASH>..<HASH> 100644 --- a/test_path.py +++ b/test_path.py @@ -1097,7 +1097,7 @@ class TestInPlace: with doc.in_place() as (reader, writer): writer.write(self.alternate_content) raise RuntimeError("some error") - asser...
Correct usage of exception resolution from exception info context. Fixes #<I>.
py
diff --git a/superset/views/core.py b/superset/views/core.py index <HASH>..<HASH> 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -1953,6 +1953,9 @@ class Superset(BaseSupersetView): 'common': self.common_bootsrap_payload(), } + if request.args.get('json') == 'true': +...
read query params for json in dashboard endpoint (#<I>)
py
diff --git a/src/foremast/common/base.py b/src/foremast/common/base.py index <HASH>..<HASH> 100644 --- a/src/foremast/common/base.py +++ b/src/foremast/common/base.py @@ -1,10 +1,20 @@ """Base Plugin class.""" -from abc import ABC, abstractmethod +from abc import ABC, abstractmethod, abstractproperty class BasePl...
refactor: Plugins must specify provider and resource properties
py
diff --git a/PyFunceble/checker/base.py b/PyFunceble/checker/base.py index <HASH>..<HASH> 100644 --- a/PyFunceble/checker/base.py +++ b/PyFunceble/checker/base.py @@ -79,6 +79,12 @@ class CheckerBase: *, do_syntax_check_first: Optional[bool] = None, ) -> None: + if self.params is None: + ...
Handle missing status and params and remove unneeded method. Indeed, before this patch, we didn't took in consideration that the status and params attribute could be "forgotten" leaving the door open for some errors. This patch fix that, by overwritting them with an empty Param and Status object.
py
diff --git a/github/Requester.py b/github/Requester.py index <HASH>..<HASH> 100644 --- a/github/Requester.py +++ b/github/Requester.py @@ -172,10 +172,6 @@ class Requester: def __check(self, status, responseHeaders, output): output = self.__structuredFromJson(output) - # #193: Shouldn't next line...
Move the DEBUG_ON_RESPONSE call to Requester.__requestEncode
py