diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ _INSTALL_REQUIRES = [ 'pydocstyle>=2.0.0', ] -if sys.version_info < 3: +if sys.version_info < (3, 0): _INSTALL_REQUIRES += ['pylint<2'] else: _INSTALL_REQUIRES += ['pylint>=2']
Attempting to make python versions match with supported pylint veresions
py
diff --git a/flynn/decoder.py b/flynn/decoder.py index <HASH>..<HASH> 100644 --- a/flynn/decoder.py +++ b/flynn/decoder.py @@ -1,5 +1,7 @@ # coding: utf-8 +import io + import flynn.data class _Break(Exception): @@ -14,10 +16,10 @@ def decode(obj): elif isinstance(obj, str): obj = iter(bytes.fromhex(obj)) ...
Fix decoder if you give it a file handle
py
diff --git a/dvc/fs/gdrive.py b/dvc/fs/gdrive.py index <HASH>..<HASH> 100644 --- a/dvc/fs/gdrive.py +++ b/dvc/fs/gdrive.py @@ -109,14 +109,12 @@ class GDriveFileSystem(FSSpecWrapper): # pylint:disable=abstract-method if ( self._use_service_account and not self._service_account_json_f...
Process feedback @skshetry and @karajan<I>
py
diff --git a/charmhelpers/contrib/amulet/utils.py b/charmhelpers/contrib/amulet/utils.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/amulet/utils.py +++ b/charmhelpers/contrib/amulet/utils.py @@ -546,7 +546,7 @@ class AmuletUtils(object): raise if it is present. :returns: List of proces...
Quote service to examine as it might contain whitespace in systemd land
py
diff --git a/tests/test_syntactic.py b/tests/test_syntactic.py index <HASH>..<HASH> 100644 --- a/tests/test_syntactic.py +++ b/tests/test_syntactic.py @@ -179,8 +179,6 @@ def test_generate_net_and_match(pattern, expr, is_match): net._net = DiscriminationNet._generate_net(freeze(pattern)) result = net.match(fr...
Removed temporary generation of Graph PDFs in tests.
py
diff --git a/tests/test_serverless.py b/tests/test_serverless.py index <HASH>..<HASH> 100644 --- a/tests/test_serverless.py +++ b/tests/test_serverless.py @@ -151,7 +151,7 @@ class TestServerless(unittest.TestCase): } ) ) - print t.to_json() + t.to_json() if __n...
Remove erroneous print in tests/test_serverless.py
py
diff --git a/crosscat/LocalEngine.py b/crosscat/LocalEngine.py index <HASH>..<HASH> 100644 --- a/crosscat/LocalEngine.py +++ b/crosscat/LocalEngine.py @@ -143,7 +143,10 @@ class LocalEngine(EngineTemplate.EngineTemplate): if not was_multistate: X_L_list, X_D_list = X_L_list[0], X_D_list[0] ...
munge summaries returned by analyze so they are easily separable
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -11,11 +11,14 @@ USERNAME2 = os.environ.get("DUOLINGO_USER_2", "Spaniard") class DuolingoTest(unittest.TestCase): - lingo = duolingo.Duolingo(USERNAME, PASSWORD) def setUp(self): + self.lingo = duolingo.D...
Set up lingo and tear it down properly so that sessions are tidied up
py
diff --git a/bf/pdf.py b/bf/pdf.py index <HASH>..<HASH> 100644 --- a/bf/pdf.py +++ b/bf/pdf.py @@ -5,7 +5,7 @@ import re class PDF(File): - def gswrite(self, fn=None, device='jpeg', res=600, alpha=2, quality=90, gs=None): + def gswrite(self, fn=None, device='jpeg', res=600, alpha=4, quality=90, gs=None): ...
increase the default alpha for Anti-aliasing, and make sure it is used for png, jpeg, and tiff (not just png).
py
diff --git a/thellier_gui.py b/thellier_gui.py index <HASH>..<HASH> 100755 --- a/thellier_gui.py +++ b/thellier_gui.py @@ -7577,6 +7577,9 @@ class Arai_GUI(wx.Frame): Data[s]['T_or_MW']="T" sample=rec["er_sample_name"] site=rec["er_site_name"] + # if "er_site_name" in an empty ...
thellier_gui: fix issue with empty er_site_name in magic_measurements.txt thellier_gui.py: if er_site_name is an empty column (for example synthetic specimens) then use “er_sample_name” instead of “er_site_name” when reading site data from magic_measurements.txt .
py
diff --git a/plenum/common/timer.py b/plenum/common/timer.py index <HASH>..<HASH> 100644 --- a/plenum/common/timer.py +++ b/plenum/common/timer.py @@ -7,16 +7,12 @@ import time from sortedcontainers import SortedListWithKey -# TODO: Consider renaming this into Scheduler? class TimerService(ABC): @abstractmet...
INDY-<I>: Revert comments to TimerService
py
diff --git a/peewee.py b/peewee.py index <HASH>..<HASH> 100644 --- a/peewee.py +++ b/peewee.py @@ -2458,7 +2458,7 @@ class Insert(_WriteQuery): except StopIteration: raise self.DefaultValuesException('Error: no rows to insert.') - if not isinstance(row, dict): + if ...
Use Mapping for type checks elsewhere in INSERT code.
py
diff --git a/girder/api/sftp.py b/girder/api/sftp.py index <HASH>..<HASH> 100644 --- a/girder/api/sftp.py +++ b/girder/api/sftp.py @@ -51,6 +51,7 @@ def _stat(doc, model): info.st_mtime = time.mktime(doc['updated'].timetuple()) elif 'created' in doc: info.st_mtime = time.mktime(doc['created'].tim...
Provide atime in sftp service
py
diff --git a/src/qinfer/derived_models.py b/src/qinfer/derived_models.py index <HASH>..<HASH> 100644 --- a/src/qinfer/derived_models.py +++ b/src/qinfer/derived_models.py @@ -218,7 +218,7 @@ class BinomialModel(Model): @property def modelparam_names(self): - return self._model.modelparam_name...
Added fisher_information impl for DifferentiableBinomialModel.
py
diff --git a/pymta/command_parser.py b/pymta/command_parser.py index <HASH>..<HASH> 100644 --- a/pymta/command_parser.py +++ b/pymta/command_parser.py @@ -155,14 +155,6 @@ class SMTPCommandParser(object): the actual message data.""" self.state.execute('DATA') - # REFACT: Get rid of this prope...
refactoring: remove useless property terminator in SMTPCommandParser
py
diff --git a/test_pylast.py b/test_pylast.py index <HASH>..<HASH> 100755 --- a/test_pylast.py +++ b/test_pylast.py @@ -482,7 +482,7 @@ class TestPyLast(unittest.TestCase): total = search.get_total_result_count() # Assert - self.assertGreaterEqual(total, 0) + self.assertGreaterEqual(int...
Cast string of total to int, for #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup setup(name='python_moztelemetry', - version='0.2.4', + version='0.2.5', author='Roberto Agostino Vitillo', author_email='rvitillo@mozilla.com', d...
Use latest pings as subsample.
py
diff --git a/setuptools/dist.py b/setuptools/dist.py index <HASH>..<HASH> 100644 --- a/setuptools/dist.py +++ b/setuptools/dist.py @@ -276,6 +276,12 @@ class Distribution(_Distribution): ver = packaging.version.Version(self.metadata.version) normalized_version = str(ver) ...
soften normalized version warning indicate that normalization is happening, but don't be pushy about changing valid versions. --HG-- branch : no-normalize-warning
py
diff --git a/pyknow/matchers/rete/utils.py b/pyknow/matchers/rete/utils.py index <HASH>..<HASH> 100644 --- a/pyknow/matchers/rete/utils.py +++ b/pyknow/matchers/rete/utils.py @@ -90,6 +90,7 @@ def generate_checks(fact): yield TypeCheck(type(fact)) + fact_captured = False for key, value in fact.items():...
Removing warning, allowing the operation of special attributes, needed for UNIQUE.
py
diff --git a/ansible_runner/display_callback/module.py b/ansible_runner/display_callback/module.py index <HASH>..<HASH> 100644 --- a/ansible_runner/display_callback/module.py +++ b/ansible_runner/display_callback/module.py @@ -164,6 +164,13 @@ class BaseCallbackModule(CallbackBase): event_data = dict( ...
Fix an issue with missing options Normally Ansible would pick these options up, but it doesn't seem to understand how to reference the base class. Attempting to invoke this in init of our derived class also results in empty options.
py
diff --git a/signtool/signing/client.py b/signtool/signing/client.py index <HASH>..<HASH> 100644 --- a/signtool/signing/client.py +++ b/signtool/signing/client.py @@ -47,11 +47,6 @@ def remote_signfile(options, urls, filename, fmt, token, dest=None): if dest is None: dest = filename - if fmt == 'gpg'...
stop munging path since we have output_file working
py
diff --git a/src/anyconfig/backend/base/mixins.py b/src/anyconfig/backend/base/mixins.py index <HASH>..<HASH> 100644 --- a/src/anyconfig/backend/base/mixins.py +++ b/src/anyconfig/backend/base/mixins.py @@ -2,6 +2,7 @@ # Copyright (C) 2012 - 2021 Satoru SATOH <satoru.satoh @ gmail.com> # SPDX-License-Identifier: MIT ...
fix: [pylint] suppress pylint's consider-using-with error because .mixins.TextFilesMix.{r,w}open never be called w/o 'with' statement
py
diff --git a/telethon/client/updates.py b/telethon/client/updates.py index <HASH>..<HASH> 100644 --- a/telethon/client/updates.py +++ b/telethon/client/updates.py @@ -181,7 +181,7 @@ class UpdateMethods(UserMethods): for u in update.updates: u._entities = entities self._ha...
Fix Updates object being dispatched to user handlers
py
diff --git a/test/test_dedupe.py b/test/test_dedupe.py index <HASH>..<HASH> 100644 --- a/test/test_dedupe.py +++ b/test/test_dedupe.py @@ -141,6 +141,7 @@ class BlockingTest(unittest.TestCase): (self.frozendict({"name": "Willy", "age": "35"}), self.frozendict({"name": "William", "age": "35"})...
Add more test for blockTraining
py
diff --git a/spikeextractors/extractors/hs2sortingextractor/hs2sortingextractor.py b/spikeextractors/extractors/hs2sortingextractor/hs2sortingextractor.py index <HASH>..<HASH> 100644 --- a/spikeextractors/extractors/hs2sortingextractor/hs2sortingextractor.py +++ b/spikeextractors/extractors/hs2sortingextractor/hs2sorti...
Update hs2sortingextractor.py
py
diff --git a/src/discoursegraphs/discoursegraph.py b/src/discoursegraphs/discoursegraph.py index <HASH>..<HASH> 100644 --- a/src/discoursegraphs/discoursegraph.py +++ b/src/discoursegraphs/discoursegraph.py @@ -806,16 +806,16 @@ def get_span(docgraph, node_id): "Maximum recursion depth may be exceeded.").f...
fixed #<I>: get_span() now handles phrase structure trees and dependency trees
py
diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py index <HASH>..<HASH> 100644 --- a/cassandra/io/asyncorereactor.py +++ b/cassandra/io/asyncorereactor.py @@ -203,7 +203,7 @@ class AsyncoreConnection(Connection, asyncore.dispatcher): callbacks = self._callbacks self...
Correctly error callbacks on asyncore reactor This was broken by this commit: <I>b<I>d<I>e<I>bac<I>ee<I>fd9e1d8d9d
py
diff --git a/dpark/executor.py b/dpark/executor.py index <HASH>..<HASH> 100755 --- a/dpark/executor.py +++ b/dpark/executor.py @@ -204,14 +204,12 @@ def setup_cleaner_process(workdir): import psutil psutil.Process(ppid).wait() os.killpg(ppid, signal.SIGKILL) # kill wor...
executor: make sure to clean workdir
py
diff --git a/test/test_external_commands.py b/test/test_external_commands.py index <HASH>..<HASH> 100755 --- a/test/test_external_commands.py +++ b/test/test_external_commands.py @@ -172,6 +172,12 @@ class TestConfig(ShinkenTest): receiverdaemon.direct_routing = True receiverdaemon.accept_passive_unkn...
Fix : Test - External Command Manager was not init
py
diff --git a/src/scs_core/data/interval.py b/src/scs_core/data/interval.py index <HASH>..<HASH> 100644 --- a/src/scs_core/data/interval.py +++ b/src/scs_core/data/interval.py @@ -40,7 +40,7 @@ class Interval(JSONable): def as_json(self): jdict = OrderedDict() - jdict['time'] = self.time + ...
Fixed a bug in Interval.
py
diff --git a/web_pdb/__init__.py b/web_pdb/__init__.py index <HASH>..<HASH> 100644 --- a/web_pdb/__init__.py +++ b/web_pdb/__init__.py @@ -61,7 +61,9 @@ def post_mortem(t=None, host='', port=5555): if t is None: raise ValueError('A valid traceback must be passed if no ' 'exceptio...
Adds checking for active PDB session in post_mortem
py
diff --git a/command/upload.py b/command/upload.py index <HASH>..<HASH> 100644 --- a/command/upload.py +++ b/command/upload.py @@ -146,7 +146,7 @@ class upload(PyPIRCCommand): for key, value in data.items(): title = '\nContent-Disposition: form-data; name="%s"' % key # handle multiple...
Replace overly-aggressive comparison for type equality with an isinstance check.
py
diff --git a/jax/lax.py b/jax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax.py +++ b/jax/lax.py @@ -1016,10 +1016,16 @@ add_p = standard_binop([_num, _num], 'add') ad.defjvp(add_p, lambda g, x, y: _brcast(g, y), lambda g, x, y: _brcast(g, x)) ad.primitive_transposes[add_p] = _add_transpose + +def _sub_transpose(...
Add transpose rule for sub_p.
py
diff --git a/telephus/pool.py b/telephus/pool.py index <HASH>..<HASH> 100644 --- a/telephus/pool.py +++ b/telephus/pool.py @@ -606,7 +606,10 @@ class CassandraClusterPool(service.Service): def startService(self): service.Service.startService(self) for addr in self.seed_list: - self.add...
allow seed nodes expressed as tuples (incl. port) mostly for testing.
py
diff --git a/trollimage/tests/test_image.py b/trollimage/tests/test_image.py index <HASH>..<HASH> 100644 --- a/trollimage/tests/test_image.py +++ b/trollimage/tests/test_image.py @@ -1197,6 +1197,8 @@ class TestXRImage: np.testing.assert_allclose(file_data[2], exp[:, :, 2]) np.testing.assert_a...
Skip tests on Windows that use NamedTemporaryFile
py
diff --git a/cluster.py b/cluster.py index <HASH>..<HASH> 100644 --- a/cluster.py +++ b/cluster.py @@ -703,7 +703,7 @@ class KMeansClustering: if len(item) != control_length: raise ValueError("Each item in the data list must have " "the same amount of d...
Bugfix (introduced by PEP8 fixes).
py
diff --git a/src/transformers/data/datasets/glue.py b/src/transformers/data/datasets/glue.py index <HASH>..<HASH> 100644 --- a/src/transformers/data/datasets/glue.py +++ b/src/transformers/data/datasets/glue.py @@ -9,6 +9,7 @@ import torch from filelock import FileLock from torch.utils.data.dataset import Dataset +...
[bart-mnli] Fix class flipping bug (#<I>)
py
diff --git a/examples/salesman.py b/examples/salesman.py index <HASH>..<HASH> 100644 --- a/examples/salesman.py +++ b/examples/salesman.py @@ -26,11 +26,15 @@ class TravellingSalesmanProblem(Annealer): def move(self): """Swaps two cities in the route.""" + # no efficiency gain, just proof of conc...
return delta energy, resolves #<I>
py
diff --git a/dvc/main.py b/dvc/main.py index <HASH>..<HASH> 100644 --- a/dvc/main.py +++ b/dvc/main.py @@ -24,6 +24,7 @@ def main(argv=None): args = None cmd = None + outerLogLevel = logger.level try: args = parse_args(argv) @@ -46,6 +47,8 @@ def main(argv=None): except Exception: #...
test: fix tests being dependent on log level Note we call main() to spare process overhead, this leads to main() inheriting log level and later tests inheriting whatever main() run left. This makes main to behave.
py
diff --git a/src/pybel/manager/cache.py b/src/pybel/manager/cache.py index <HASH>..<HASH> 100644 --- a/src/pybel/manager/cache.py +++ b/src/pybel/manager/cache.py @@ -598,7 +598,7 @@ class NetworkManager(NamespaceManager, AnnotationManager): """Drops all networks""" for network in self.session.query(N...
Reposition of commit at network deletion Triggers should be called propperly now!
py
diff --git a/openquake/hazardlib/calc/disagg.py b/openquake/hazardlib/calc/disagg.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/calc/disagg.py +++ b/openquake/hazardlib/calc/disagg.py @@ -14,9 +14,9 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If...
calc/disagg: Minor correction to a docstring.
py
diff --git a/dbt/compilation.py b/dbt/compilation.py index <HASH>..<HASH> 100644 --- a/dbt/compilation.py +++ b/dbt/compilation.py @@ -220,10 +220,13 @@ class Compiler(object): def get_compiler_context(self, model, flat_graph): context = self.project.context() - adapter = get_adapter(self.project...
add DatabaseWrapper / adapter to node compilation context
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 @@ -2502,8 +2502,13 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods obj = _deserialize_results_payload( payload...
fix(csv): Do not coerce persisted data integer columns to float (#<I>) * Replace pd.DataFrame.from_records with pd.DataFrame * Remove unused code * Update core.py * Update core.py * Update csv.py * Update core.py
py
diff --git a/cloudmesh/common/Shell.py b/cloudmesh/common/Shell.py index <HASH>..<HASH> 100755 --- a/cloudmesh/common/Shell.py +++ b/cloudmesh/common/Shell.py @@ -287,10 +287,6 @@ class Shell(object): return r @classmethod - def title(name): - os.system(f"echo -n -e "\033]0;{name}\007"...
update the shell with a terminal title command
py
diff --git a/influxdb/helper.py b/influxdb/helper.py index <HASH>..<HASH> 100644 --- a/influxdb/helper.py +++ b/influxdb/helper.py @@ -82,7 +82,7 @@ class SeriesHelper(object): allowed_time_precisions = ['h', 'm', 's', 'ms', 'u', 'ns', None] if cls._time_precision not in allowed_time_precision...
Add support for custom indexes for query in the DataFrameClient (#<I>)
py
diff --git a/wake/__init__.py b/wake/__init__.py index <HASH>..<HASH> 100644 --- a/wake/__init__.py +++ b/wake/__init__.py @@ -1,6 +1,7 @@ from broth import Broth from os.path import isfile from requests import get +from subprocess import check_output from urllib.request import urlretrieve def clean_title(title)...
run_sql defaults to no db
py
diff --git a/pipenv/cli.py b/pipenv/cli.py index <HASH>..<HASH> 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -1865,7 +1865,12 @@ def install( c = pip_install(package_name, ignore_hashes=True, allow_global=system, no_deps=False, verbose=verbose, pre=pre) # Warn if --editable wasn't passe...
prettier message for vcs req missing egg fragment
py
diff --git a/polyaxon/scheduler/spawners/templates/dockerizers/manager.py b/polyaxon/scheduler/spawners/templates/dockerizers/manager.py index <HASH>..<HASH> 100644 --- a/polyaxon/scheduler/spawners/templates/dockerizers/manager.py +++ b/polyaxon/scheduler/spawners/templates/dockerizers/manager.py @@ -55,10 +55,10 @@ c...
Update build init image and pull policy
py
diff --git a/SpiffWorkflow/bpmn/parser/BpmnParser.py b/SpiffWorkflow/bpmn/parser/BpmnParser.py index <HASH>..<HASH> 100644 --- a/SpiffWorkflow/bpmn/parser/BpmnParser.py +++ b/SpiffWorkflow/bpmn/parser/BpmnParser.py @@ -20,6 +20,7 @@ __author__ = 'matth' class BpmnParser(object): """ The BpmnParser class is a...
Updating API docs.
py
diff --git a/sos/plugins/ebpf.py b/sos/plugins/ebpf.py index <HASH>..<HASH> 100644 --- a/sos/plugins/ebpf.py +++ b/sos/plugins/ebpf.py @@ -53,6 +53,10 @@ class Ebpf(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): self.add_cmd_output("bpftool map dump id %s" % map_id) self.add_cmd_output([ + ...
[ebpf] Collect bpftool [map|prog] list in both formats Collect and store both maps and progs list in both human readable and JSON formats. Resolves: #<I>
py
diff --git a/LiSE/character.py b/LiSE/character.py index <HASH>..<HASH> 100644 --- a/LiSE/character.py +++ b/LiSE/character.py @@ -2573,8 +2573,8 @@ class Character(DiGraph, RuleFollower): seen.add((graphn, noden)) def _trashimg(self, branch, tick): - if branch in self._images and tick in...
Even better memoization. I think I did cache invalidation correctly here
py
diff --git a/django_th/forms/wizard.py b/django_th/forms/wizard.py index <HASH>..<HASH> 100644 --- a/django_th/forms/wizard.py +++ b/django_th/forms/wizard.py @@ -1,5 +1,5 @@ from django import forms -from django_th.models import ServicesActivated +from django_th.models import UserService from django.utils.translatio...
fix #<I> : UserService matching query does not exist
py
diff --git a/salt/modules/zpool.py b/salt/modules/zpool.py index <HASH>..<HASH> 100644 --- a/salt/modules/zpool.py +++ b/salt/modules/zpool.py @@ -18,6 +18,7 @@ __func_alias__ = { 'import_': 'import' } + @decorators.memoize def _check_zpool(): '''
Fixing pylint violation
py
diff --git a/txkoji/estimates.py b/txkoji/estimates.py index <HASH>..<HASH> 100644 --- a/txkoji/estimates.py +++ b/txkoji/estimates.py @@ -43,7 +43,8 @@ def average_build_durations(connection, packages): if not containers: multicall = connection.MultiCall() - multicall.getAverageBuildDuration(nam...
estimates: call getAverageBuildDuration on every package We need to call getAverageBuildDuration() on every package, instead of the unbound local "name".
py
diff --git a/salt/version.py b/salt/version.py index <HASH>..<HASH> 100644 --- a/salt/version.py +++ b/salt/version.py @@ -79,7 +79,7 @@ class SaltStackVersion(object): # ------------------------------------------------------------------------------------------------------------ 'Hydrogen' : (201...
Rename <I> to <I>
py
diff --git a/openquake/db/models.py b/openquake/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/db/models.py +++ b/openquake/db/models.py @@ -1237,7 +1237,7 @@ class GmfSet(djm.Model): investigation_time = djm.FloatField() # Keep track of the stochastic event set which this GMF set is associated ...
db/models: Fixed the field type of `ses_number` in GmfSet.
py
diff --git a/src/you_get/extractors/google.py b/src/you_get/extractors/google.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/google.py +++ b/src/you_get/extractors/google.py @@ -49,6 +49,8 @@ def google_download(url, output_dir = '.', merge = True, info_only = False, **kw if service == 'plus': # Googl...
[google+] add TBD comments
py
diff --git a/collectd_rest/models.py b/collectd_rest/models.py index <HASH>..<HASH> 100644 --- a/collectd_rest/models.py +++ b/collectd_rest/models.py @@ -15,7 +15,7 @@ class GraphGroup(models.Model): def __repr__(self): return '<GraphGroup %s>' % self.name -# lambdas can’t be used for field options like default...
Use only ASCII in comment to make Python 2 happy
py
diff --git a/dlkit/records/repository/lore/repository_extensions.py b/dlkit/records/repository/lore/repository_extensions.py index <HASH>..<HASH> 100644 --- a/dlkit/records/repository/lore/repository_extensions.py +++ b/dlkit/records/repository/lore/repository_extensions.py @@ -186,7 +186,7 @@ class LoreCourseRunReposi...
write org text instead of DisplayText
py
diff --git a/mapillary_tools/processing.py b/mapillary_tools/processing.py index <HASH>..<HASH> 100644 --- a/mapillary_tools/processing.py +++ b/mapillary_tools/processing.py @@ -538,6 +538,25 @@ def preform_process(file_path, process, rerun=False): return preform +def get_failed_process_file_list(import_path,...
add: function to extract failed process files
py
diff --git a/mock.py b/mock.py index <HASH>..<HASH> 100644 --- a/mock.py +++ b/mock.py @@ -817,6 +817,7 @@ class CallableMixin(Base): class Mock(CallableMixin, NonCallableMock): + """XXXX needs docstring""" pass @@ -1467,6 +1468,7 @@ class MagicMixin(object): class NonCallableMagicMock(MagicMixin,...
Placeholders for missing docstrings
py
diff --git a/tests/models_tests/test_fcn32s.py b/tests/models_tests/test_fcn32s.py index <HASH>..<HASH> 100644 --- a/tests/models_tests/test_fcn32s.py +++ b/tests/models_tests/test_fcn32s.py @@ -1,8 +1,12 @@ +# FIXME: Import order causes error: +# ImportError: dlopen: cannot load any more object with static TL +# https...
Fix import order of torchfcn to avoid ImportError
py
diff --git a/python/thunder/rdds/fileio/readers.py b/python/thunder/rdds/fileio/readers.py index <HASH>..<HASH> 100644 --- a/python/thunder/rdds/fileio/readers.py +++ b/python/thunder/rdds/fileio/readers.py @@ -328,7 +328,7 @@ class BotoS3FileReader(_BotoS3Client): def list(self, datapath, filename=None): ...
return s3 scheme URI from list files in boto s3 reader
py
diff --git a/sorl_watermarker/engines/base.py b/sorl_watermarker/engines/base.py index <HASH>..<HASH> 100644 --- a/sorl_watermarker/engines/base.py +++ b/sorl_watermarker/engines/base.py @@ -59,6 +59,14 @@ class WatermarkEngineBase(ThumbnailEngineBase): options['watermark_pos']) + ...
The blank _watermark method added to the basic engine
py
diff --git a/jira/resources.py b/jira/resources.py index <HASH>..<HASH> 100644 --- a/jira/resources.py +++ b/jira/resources.py @@ -111,6 +111,7 @@ class Resource(object): "displayName", "key", "name", + "accountId", "filename", "value", "scope",
Include accountId in User key fields Change-Id: I3df<I>e<I>b4ba<I>db<I>fb<I>de<I>bfc
py
diff --git a/zipline/utils/run_algo.py b/zipline/utils/run_algo.py index <HASH>..<HASH> 100644 --- a/zipline/utils/run_algo.py +++ b/zipline/utils/run_algo.py @@ -350,6 +350,8 @@ def run_algorithm(start, metrics_set : iterable[Metric] or str, optional The set of metrics to compute in the simulation. If a ...
DOC: Add missing param to run_algorithm docstring
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -195,8 +195,6 @@ setup_kwargs = dict( "Topic :: Software Development", "Programming Language :: Python", "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3.3", - ...
Update supported python versions (#<I>) Technically we support <I> until one more minor version, but I'm only doing this so that our badge on the README will read correctly, so jumping the gun a little should be fine.
py
diff --git a/salt/utils/xmlutil.py b/salt/utils/xmlutil.py index <HASH>..<HASH> 100644 --- a/salt/utils/xmlutil.py +++ b/salt/utils/xmlutil.py @@ -52,4 +52,4 @@ def to_dict(xmltree): # Attempt to ensure that items are not overwritten by attributes. xmldict["attr{0}".format(attrName)] = attrVal...
Lint: Add empty line at end of file
py
diff --git a/plans/views.py b/plans/views.py index <HASH>..<HASH> 100644 --- a/plans/views.py +++ b/plans/views.py @@ -189,7 +189,10 @@ class CreateOrderView(LoginRequired, CreateView): country = get_country_code(self.request) else: country = country.code - tax_number = Billing...
fix taxation if BillingInfo.tax_number is None
py
diff --git a/src/you_get/extractors/tumblr.py b/src/you_get/extractors/tumblr.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/tumblr.py +++ b/src/you_get/extractors/tumblr.py @@ -23,7 +23,7 @@ def tumblr_download(url, output_dir = '.', merge = True, info_only = False): title = unescape_html(r1(r'...
[Tumblr] fix for videos with no title
py
diff --git a/regression/storage.py b/regression/storage.py index <HASH>..<HASH> 100644 --- a/regression/storage.py +++ b/regression/storage.py @@ -55,7 +55,7 @@ class TestStorageBuckets(unittest2.TestCase): def tearDown(self): with Batch(CONNECTION) as batch: for bucket_name in self.case_buck...
Removing use of non-batchable request in storage regression.
py
diff --git a/furious/extras/appengine/ndb_persistence.py b/furious/extras/appengine/ndb_persistence.py index <HASH>..<HASH> 100644 --- a/furious/extras/appengine/ndb_persistence.py +++ b/furious/extras/appengine/ndb_persistence.py @@ -161,7 +161,7 @@ def _mark_context_complete(marker, context): def _insert_post_comple...
Address comments from cr to ndb_persistence.py
py
diff --git a/replacer.py b/replacer.py index <HASH>..<HASH> 100755 --- a/replacer.py +++ b/replacer.py @@ -304,7 +304,7 @@ def repl_main(opts, args): print() -def main(): +def main(args=None): """ manages options when called from command line @@ -352,7 +352,7 @@ def main(): quiet=False...
main(): accept arguments from other places that sys.argv
py
diff --git a/pymc/distributions/discrete.py b/pymc/distributions/discrete.py index <HASH>..<HASH> 100644 --- a/pymc/distributions/discrete.py +++ b/pymc/distributions/discrete.py @@ -1371,7 +1371,7 @@ class DiracDelta(Discrete): Parameters ---------- - c: float or int + c : tensor_like of float or int...
update docstrings in ZeroInflatedPoisson, DiracDelta and OrderedLogistic classes
py
diff --git a/clam/config/textstats.py b/clam/config/textstats.py index <HASH>..<HASH> 100644 --- a/clam/config/textstats.py +++ b/clam/config/textstats.py @@ -101,7 +101,8 @@ PROFILES = [ InputTemplate('textinput', PlainTextFormat,"Input text document", StaticParameter(id='encoding',name='Encoding...
added a custom validator for testing
py
diff --git a/git/repo/base.py b/git/repo/base.py index <HASH>..<HASH> 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -29,6 +29,7 @@ from git.remote import Remote, add_progress, to_progress_instance from git.util import ( Actor, finalize_process, + cygpath, decygpath, hex_to_bin, ex...
BUG: Convert to native path before checking if absolute
py
diff --git a/hupper/reloader.py b/hupper/reloader.py index <HASH>..<HASH> 100644 --- a/hupper/reloader.py +++ b/hupper/reloader.py @@ -159,6 +159,7 @@ class Reloader(object): except KeyboardInterrupt: return finally: + self._terminate_worker() self._stop_monitor() ...
always try to terminate the worker when done
py
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py index <HASH>..<HASH> 100644 --- a/pymatgen/io/vasp/outputs.py +++ b/pymatgen/io/vasp/outputs.py @@ -2324,8 +2324,7 @@ class Outcar: def born_section_start(results, match): results.born_ion = -1 - search.app...
Born Effectice Charges in new outcars
py
diff --git a/rootpy/plotting/root2matplotlib.py b/rootpy/plotting/root2matplotlib.py index <HASH>..<HASH> 100644 --- a/rootpy/plotting/root2matplotlib.py +++ b/rootpy/plotting/root2matplotlib.py @@ -158,15 +158,17 @@ def hist(hists, stacked=True, reverse=False, axes=None, snap=snap, ...
draw stacked histograms top down so that higher histograms don't cover the top edges of the lower histograms
py
diff --git a/vertica_python/vertica/connection.py b/vertica_python/vertica/connection.py index <HASH>..<HASH> 100644 --- a/vertica_python/vertica/connection.py +++ b/vertica_python/vertica/connection.py @@ -577,7 +577,10 @@ class Connection(object): except Exception as e: self.close_socket() ...
Raise ConnectionError in connection.write (#<I>)
py
diff --git a/shakedown/dcos/spinner.py b/shakedown/dcos/spinner.py index <HASH>..<HASH> 100644 --- a/shakedown/dcos/spinner.py +++ b/shakedown/dcos/spinner.py @@ -8,13 +8,13 @@ def wait_for(predicate, timeout_seconds=120, sleep_seconds=1, ignore_exceptions= """ - timeout = create_deadline(timeout_seconds) +...
switching to a staticmethod approach based on PR feedback.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ To install Robot Framework Ftp Library execute command: from distutils.core import setup setup(name='robotframework-ftplibrary', - version='1.6', + version='1.7', description='Robot Framewor...
yet another piece of code where version number needs to be updated
py
diff --git a/ratcave/mesh.py b/ratcave/mesh.py index <HASH>..<HASH> 100644 --- a/ratcave/mesh.py +++ b/ratcave/mesh.py @@ -97,7 +97,7 @@ class Mesh(mixins.Picklable): #: Bool: if the Mesh is visible for rendering. If false, will not be rendered. self.visible = visible - self.vao = self.vao = ...
Mesh.vao gets created on its first draw() call, ensuring that the OpenGL context is already active.
py
diff --git a/dynamic_rest/filters.py b/dynamic_rest/filters.py index <HASH>..<HASH> 100644 --- a/dynamic_rest/filters.py +++ b/dynamic_rest/filters.py @@ -19,6 +19,11 @@ from dynamic_rest.related import RelatedObject patch_prefetch_one_level() +def duplicate_results_possible(queryset): + """Return True iff. a q...
add helper to determine whether a queryset could return dupes, and only .distinct it if this is the case
py
diff --git a/src/oidcservice/service_context.py b/src/oidcservice/service_context.py index <HASH>..<HASH> 100644 --- a/src/oidcservice/service_context.py +++ b/src/oidcservice/service_context.py @@ -88,6 +88,7 @@ class ServiceContext: self.callback = None self.args = {} self.add_on = {} + ...
Added httpc_params
py
diff --git a/kafka/client.py b/kafka/client.py index <HASH>..<HASH> 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -86,7 +86,7 @@ class KafkaClient(object): self.load_metadata_for_topics(topic) # If the partition doesn't actually exist, raise - if partition not in self.topic_partitions...
Avoid topic_partitions KeyError in KafkaClient
py
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index <HASH>..<HASH> 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -3032,12 +3032,12 @@ class DistInfoDistribution(Distribution): if not req.marker or req.marker.evaluate({'extra': extra}): ...
Remove pkg_resources nondeterminism.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -77,6 +77,7 @@ setup( url='https://github.com/reanahub/reana-commons', packages=['reana_commons', ], zip_safe=False, + include_package_data=True, install_requires=install_requires, extras_require=ex...
installation: include OpenAPI specs package data
py
diff --git a/test/augmenters/test_arithmetic.py b/test/augmenters/test_arithmetic.py index <HASH>..<HASH> 100644 --- a/test/augmenters/test_arithmetic.py +++ b/test/augmenters/test_arithmetic.py @@ -3180,12 +3180,10 @@ class TestInvert(unittest.TestCase): class TestContrastNormalization(unittest.TestCase): + @u...
Deactivate test in <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ If you get errors, check the following things: """ setup(name='CleanerVersion', - version='1.3.1', + version='1.3.2', description='A versioning solution for relational data models', l...
Bumping version number to <I>
py
diff --git a/phy/plot/view_models/kwik.py b/phy/plot/view_models/kwik.py index <HASH>..<HASH> 100644 --- a/phy/plot/view_models/kwik.py +++ b/phy/plot/view_models/kwik.py @@ -20,6 +20,14 @@ from .base import _selected_clusters_colors, BaseViewModel #-----------------------------------------------------------------...
Automatically convert even number to odd number in CCG parameters.
py
diff --git a/awslimitchecker/services/ec2.py b/awslimitchecker/services/ec2.py index <HASH>..<HASH> 100644 --- a/awslimitchecker/services/ec2.py +++ b/awslimitchecker/services/ec2.py @@ -120,11 +120,14 @@ class _Ec2Service(_AwsService): for req in res['SpotInstanceRequests']: if req['State'] in ['...
issue #<I> - add a bit more debugging
py
diff --git a/travis_docs_builder.py b/travis_docs_builder.py index <HASH>..<HASH> 100755 --- a/travis_docs_builder.py +++ b/travis_docs_builder.py @@ -159,7 +159,7 @@ def setup_GitHub_push(repo): print("Adding token remote") run(['git', 'remote', 'add', 'origin_token', - 'https://{token}@github.com/{...
Make sure to format in the token as a string
py
diff --git a/djkombu/transport.py b/djkombu/transport.py index <HASH>..<HASH> 100644 --- a/djkombu/transport.py +++ b/djkombu/transport.py @@ -30,8 +30,9 @@ class Channel(virtual.Channel): return Queue.objects.purge(queue) def refresh_connection(self): - from django.db import connection - ...
it's possible that djkombu could have a variety of db backend setups (i.e. something other than the 'default' alias). so we'll need to refresh all connections.
py
diff --git a/hypermap/aggregator/enums.py b/hypermap/aggregator/enums.py index <HASH>..<HASH> 100644 --- a/hypermap/aggregator/enums.py +++ b/hypermap/aggregator/enums.py @@ -28,6 +28,7 @@ SUPPORTED_SRS = [ 'EPSG:102100', '102100', 'EPSG:102113', '102113', ...
Added <I> in SUPPORTED_SRS
py
diff --git a/script/upload.py b/script/upload.py index <HASH>..<HASH> 100755 --- a/script/upload.py +++ b/script/upload.py @@ -106,7 +106,7 @@ def parse_args(): def get_atom_shell_build_version(): - if os.environ.has_key('CI'): + if get_target_arch() == 'arm' or os.environ.has_key('CI'): # In CI we just bui...
Don't check build version for arm target
py
diff --git a/sportsreference/nfl/boxscore.py b/sportsreference/nfl/boxscore.py index <HASH>..<HASH> 100644 --- a/sportsreference/nfl/boxscore.py +++ b/sportsreference/nfl/boxscore.py @@ -652,8 +652,9 @@ class Boxscore: values. The index for the DataFrame is the string URI that is used to instantiate t...
Fix issue with future NFL boxscore errors For games that are yet to occur which are listed in an NFL team's schedule, an error will be thrown while attempting to parse a score for the game when none exists. To circumvent this issue, not only should the points be checked if they are None, they should also be checked if...
py
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index <HASH>..<HASH> 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6351,8 +6351,11 @@ class Index(IndexOpsMixin, PandasObject): KeyError If not all of the labels are found in the selected axis ...
PERF: nsmallest (#<I>)
py
diff --git a/coconut/command/command.py b/coconut/command/command.py index <HASH>..<HASH> 100644 --- a/coconut/command/command.py +++ b/coconut/command/command.py @@ -552,8 +552,8 @@ class Command(object): def run_mypy(self, paths=[], code=None): """Run MyPy with arguments.""" - set_mypy_path(stu...
Only set mypy path in mypy mode
py
diff --git a/iktomi/web/url_converters.py b/iktomi/web/url_converters.py index <HASH>..<HASH> 100644 --- a/iktomi/web/url_converters.py +++ b/iktomi/web/url_converters.py @@ -139,6 +139,8 @@ class Date(Converter): raise ConvertError(self, value) def to_url(self, value): + if isinstance(value,...
allow strings as Date url converter to_url argument
py