diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/django_countries/tests/test_widgets.py b/django_countries/tests/test_widgets.py index <HASH>..<HASH> 100644 --- a/django_countries/tests/test_widgets.py +++ b/django_countries/tests/test_widgets.py @@ -1,9 +1,12 @@ from __future__ import unicode_literals +from unittest import skipIf try: from urllib...
Test required attribute of widget Refs #<I>
py
diff --git a/test_autoflake.py b/test_autoflake.py index <HASH>..<HASH> 100755 --- a/test_autoflake.py +++ b/test_autoflake.py @@ -1200,7 +1200,6 @@ def func11(): self.assertFalse(autoflake.is_literal_or_name('xyz.prop')) self.assertFalse(autoflake.is_literal_or_name(' ')) - self.assertFalse(...
test_autoflake: remove assertion that no longer holds true in py <I>
py
diff --git a/src/pulseio.py b/src/pulseio.py index <HASH>..<HASH> 100644 --- a/src/pulseio.py +++ b/src/pulseio.py @@ -6,5 +6,3 @@ if detector.board.any_coral_board: from adafruit_blinka.microcontroller.generic_linux.sysfs_pwmout import PWMOut if detector.board.any_giant_board: from adafruit_blinka.microcont...
Removed Odroid C2 from pulseio
py
diff --git a/pkg_resources.py b/pkg_resources.py index <HASH>..<HASH> 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -80,6 +80,13 @@ import setuptools._vendor.packaging.specifiers packaging = setuptools._vendor.packaging +class PEP440Warning(RuntimeWarning): + """ + Used when there is an issue with ...
Add a PEP<I>Warning to make it easier to silence these warnings
py
diff --git a/eventsourcing/tests/test_system.py b/eventsourcing/tests/test_system.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_system.py +++ b/eventsourcing/tests/test_system.py @@ -27,7 +27,7 @@ class TestSystem(TestCase): order_id = create_new_order() # Check the order is ...
Changed test to access processes on system object as attributes.
py
diff --git a/revproxy/views.py b/revproxy/views.py index <HASH>..<HASH> 100644 --- a/revproxy/views.py +++ b/revproxy/views.py @@ -60,12 +60,13 @@ class ProxyView(View): def _created_proxy_response(self, request, path): request_payload = request.body request_headers = normalize_headers(request) -...
Log headers after remote_user is set
py
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py index <HASH>..<HASH> 100644 --- a/salt/utils/__init__.py +++ b/salt/utils/__init__.py @@ -1050,10 +1050,10 @@ def safe_walk(dir_): if stat.S_ISLNK(mode): real = os.path.realpath(full) try: - mode = os.stat(rea...
Fix issue where safe_walk would skip files
py
diff --git a/versionner.py b/versionner.py index <HASH>..<HASH> 100755 --- a/versionner.py +++ b/versionner.py @@ -470,7 +470,11 @@ def main(): version_file.write(current) else: - current = version_file.read() + try: + current = version_file.read() + except FileNotFoundEr...
do not fail on missing VERSION file
py
diff --git a/imagen/__init__.py b/imagen/__init__.py index <HASH>..<HASH> 100644 --- a/imagen/__init__.py +++ b/imagen/__init__.py @@ -584,6 +584,21 @@ class Composite(PatternGenerator): """ return p.generators + def state_push(self): + """ + Push the state of all generators + ...
state_push and state_pop now apply to the generators of a Composite
py
diff --git a/salt/utils/http.py b/salt/utils/http.py index <HASH>..<HASH> 100644 --- a/salt/utils/http.py +++ b/salt/utils/http.py @@ -461,7 +461,7 @@ def get_ca_bundle(opts=None): if os.path.exists(path): return path - if salt.utils.is_windows(): + if salt.utils.is_windows() and HAS_CERTI...
Added HAS_CERTIFI check
py
diff --git a/homie/__init__.py b/homie/__init__.py index <HASH>..<HASH> 100644 --- a/homie/__init__.py +++ b/homie/__init__.py @@ -1 +1 @@ -__version__ = b"2.1.0" +__version__ = b"2.2.0-dev"
Update version Version in master branch should be the next release version with the -dev identifier.
py
diff --git a/pymc/sampling.py b/pymc/sampling.py index <HASH>..<HASH> 100644 --- a/pymc/sampling.py +++ b/pymc/sampling.py @@ -2023,7 +2023,7 @@ def sample_prior_predictive( Number of samples from the prior predictive to generate. Defaults to 500. model : Model (optional if in ``with`` context) var_n...
Fix minor typo (#<I>) "posterior predictive" -> "prior predictive"
py
diff --git a/PycurlClient/src/python/RestClient/AuthHandling/X509Auth.py b/PycurlClient/src/python/RestClient/AuthHandling/X509Auth.py index <HASH>..<HASH> 100644 --- a/PycurlClient/src/python/RestClient/AuthHandling/X509Auth.py +++ b/PycurlClient/src/python/RestClient/AuthHandling/X509Auth.py @@ -87,7 +87,8 @@ class X...
Make sure the DBS client runs inside lightweight CRAB3 by mmascher
py
diff --git a/timepiece/forms.py b/timepiece/forms.py index <HASH>..<HASH> 100644 --- a/timepiece/forms.py +++ b/timepiece/forms.py @@ -12,7 +12,7 @@ from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError, NON_FIELD_ERRORS from selectable import forms as selectable...
[#<I>] Moving away from relative imports
py
diff --git a/vyper/opcodes.py b/vyper/opcodes.py index <HASH>..<HASH> 100644 --- a/vyper/opcodes.py +++ b/vyper/opcodes.py @@ -11,7 +11,7 @@ EVM_VERSIONS: Dict[str, int] = { 'petersburg': 1, 'istanbul': 2, } -DEFAULT_EVM_VERSION: str = "byzantium" +DEFAULT_EVM_VERSION: str = "istanbul" # opcode as hex v...
set default evm version as istanbul
py
diff --git a/bokeh/models/map_plots.py b/bokeh/models/map_plots.py index <HASH>..<HASH> 100644 --- a/bokeh/models/map_plots.py +++ b/bokeh/models/map_plots.py @@ -36,10 +36,6 @@ class MapPlot(Plot): """ - map_options = Instance(MapOptions, help=""" - Options for displaying the plot. - """) - class GM...
Remove map_options from MapPlot base class and leave it in subtypes This is more correct because the subtypes are not substitutable when it comes to map_options
py
diff --git a/gffutils/iterators.py b/gffutils/iterators.py index <HASH>..<HASH> 100644 --- a/gffutils/iterators.py +++ b/gffutils/iterators.py @@ -131,7 +131,7 @@ class _FileIterator(_BaseIterator): self.current_item_number = i if line == '##FASTA' or line.startswith('>'): - r...
"raise StopIteration" to "return" (#<I>)
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -533,9 +533,9 @@ class Minion(object): return # Verify that the publication applies to this minion if 'tgt_type' in data: - if not getattr(self.matcher, - ...
Fix traceback introduced in c<I>e<I> c<I>e<I> from earlier today broke a lot of things, because of a misreading of how getattr was being called. This commit fixes that.
py
diff --git a/pytds/tds.py b/pytds/tds.py index <HASH>..<HASH> 100644 --- a/pytds/tds.py +++ b/pytds/tds.py @@ -674,6 +674,7 @@ class _TdsSession(object): self._tds = tds self.messages = [] self.chunk_handler = tds.chunk_handler + self.rows_affected = -1 def is_dead(self): ...
bugfix and enabled TCP_NODELAY for socket (greatly improves performance for mars)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,13 +10,11 @@ if platform.system() == "Windows": elif platform.system() == "Darwin": extras_require = { 'cocoa': ['pyobjc'], - 'qt4': ['PyQt4'], 'qt5': ['PyQt5'], } elif platform.s...
Remove pyqt4 from requires in setup.py
py
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +''' +VMware Cloud Module +=================== + +.. versionadded:: Beryllium + +The VMware cloud module allows...
Adding docs to vmware cloud driver
py
diff --git a/fedmsg/meta/__init__.py b/fedmsg/meta/__init__.py index <HASH>..<HASH> 100644 --- a/fedmsg/meta/__init__.py +++ b/fedmsg/meta/__init__.py @@ -312,5 +312,7 @@ def msg2subjective(msg, processor, subject, **config): #174". """ fmt = u"{text} {link}" text = processor.subjective(msg, **config) + ...
if a processor doesn't have a subjective method, fall back to subtitle
py
diff --git a/neutronclient/neutron/v2_0/purge.py b/neutronclient/neutron/v2_0/purge.py index <HASH>..<HASH> 100644 --- a/neutronclient/neutron/v2_0/purge.py +++ b/neutronclient/neutron/v2_0/purge.py @@ -20,6 +20,7 @@ from neutronclient.neutron import v2_0 as neutronV20 class Purge(neutronV20.NeutronCommand): + ...
Added missing help text for 'purge' command Added help text for 'purge' when running 'neutron --help'. Change-Id: I<I>eb9c<I>b<I>dbceadf<I>c<I>a<I>c<I> Closes-Bug: #<I>
py
diff --git a/tcp_check/test_tcp_check.py b/tcp_check/test_tcp_check.py index <HASH>..<HASH> 100644 --- a/tcp_check/test_tcp_check.py +++ b/tcp_check/test_tcp_check.py @@ -56,7 +56,7 @@ class TCPCheckTest(AgentCheckTest): self.check._process_results() if len(getattr(self.check, attribute)) >= c...
[tcp_check] sleep <I> longer to lower flakiness This test often raises false positives, it might be because of a sleep a bit too short.
py
diff --git a/hotdoc/core/project.py b/hotdoc/core/project.py index <HASH>..<HASH> 100644 --- a/hotdoc/core/project.py +++ b/hotdoc/core/project.py @@ -349,6 +349,9 @@ class Project(Configurable): def write_out(self, output): """Banana banana """ + if not output: + return + ...
project: no write_out if no output
py
diff --git a/raven/base.py b/raven/base.py index <HASH>..<HASH> 100644 --- a/raven/base.py +++ b/raven/base.py @@ -443,7 +443,8 @@ class Client(object): interfaces. Any key which contains a '.' will be assumed to be a data interface. :param date: the date...
clarify time_spent, and note that it should be an integer
py
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index <HASH>..<HASH> 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -546,7 +546,8 @@ class Switches(app_manager.RyuApp): ofproto.OFPP_CONTROLLER, self.LLDP_PACKET_LEN)] dp.send_flow_mo...
topology: Setting highest rule priority to LLDP packets
py
diff --git a/trakt/objects.py b/trakt/objects.py index <HASH>..<HASH> 100644 --- a/trakt/objects.py +++ b/trakt/objects.py @@ -68,7 +68,11 @@ class Show(Media): return { 'ids': dict(self.keys), 'title': self.title, - 'year': self.year + 'year': self.year, + ...
add extra fields that are passed by trakt add extra fields that are passed by trakt
py
diff --git a/autofit/tools/edenise/file.py b/autofit/tools/edenise/file.py index <HASH>..<HASH> 100644 --- a/autofit/tools/edenise/file.py +++ b/autofit/tools/edenise/file.py @@ -21,6 +21,18 @@ class Unparser(Unparser_): ) self.write(rep) + def _write_constant(self, value): + rep = rep...
fixed doc strings in <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -77,5 +77,9 @@ setup( # your project is installed. For an analysis of "install_requires" vs pip's # requirements files see: # https://packaging.python.org/en/latest/requirements.html - install_requires=['pand...
Update setup.py Modify installation for readthedocs
py
diff --git a/py/dynesty/dynamicsampler.py b/py/dynesty/dynamicsampler.py index <HASH>..<HASH> 100644 --- a/py/dynesty/dynamicsampler.py +++ b/py/dynesty/dynamicsampler.py @@ -373,7 +373,8 @@ def sample_init(live_points, if live_points is None: # If no live points are provided, propose them by randomly ...
fix n_attempts
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 @@ -220,6 +220,12 @@ producing too small PoEs.''' raise RuntimeError('All sources were filte...
Added a warning in the disaggregation [skip CI]
py
diff --git a/ipyrad/assemble/demultiplex.py b/ipyrad/assemble/demultiplex.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/demultiplex.py +++ b/ipyrad/assemble/demultiplex.py @@ -1315,7 +1315,12 @@ def estimate_nreads(data, testfile): # divide by the tmp file size and multiply by 10000 to approximate # ...
demultiplex.py: Allow very short input fq files.
py
diff --git a/src/streamlink/session.py b/src/streamlink/session.py index <HASH>..<HASH> 100644 --- a/src/streamlink/session.py +++ b/src/streamlink/session.py @@ -3,6 +3,7 @@ import logging import pkgutil import sys import traceback +import warnings import requests @@ -42,11 +43,21 @@ def print_small_exception(...
add python <I> deprecation warning In a future version of streamlink only Python <I> and above will be supported.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ with codecs_open('README.rst', encoding='utf-8') as f: setup(name='grapheme', - version='0.4.0', + version='0.5.0', description=u"Unicode grapheme helpers", long_description=long_descr...
updated version number in setup.py
py
diff --git a/ga4gh/protocol.py b/ga4gh/protocol.py index <HASH>..<HASH> 100644 --- a/ga4gh/protocol.py +++ b/ga4gh/protocol.py @@ -50,6 +50,9 @@ _valueListNameMap = { SearchFeatureSetsResponse: "feature_sets", # noqa SearchFeaturesResponse: "features", # noqa SearchPhenotypeAssociationSetsResponse: "ph...
Adds missing response objects to value list name map
py
diff --git a/lib/external_authentication_robot.py b/lib/external_authentication_robot.py index <HASH>..<HASH> 100644 --- a/lib/external_authentication_robot.py +++ b/lib/external_authentication_robot.py @@ -30,24 +30,15 @@ import hmac import time import base64 -if sys.hexversion < 0x2060000: - try: - impo...
jsonutils: initial release * Centralize current usage of JSON into a shared module called jsonutils.py.
py
diff --git a/atomic_reactor/plugins/pre_pin_operator_digest.py b/atomic_reactor/plugins/pre_pin_operator_digest.py index <HASH>..<HASH> 100644 --- a/atomic_reactor/plugins/pre_pin_operator_digest.py +++ b/atomic_reactor/plugins/pre_pin_operator_digest.py @@ -6,7 +6,7 @@ This software may be modified and distributed und...
Fix __future__ import in pin_operator_digest It was not supposed to be print_function but unicode_literals
py
diff --git a/eqcorrscan/tests/synth_seis_test.py b/eqcorrscan/tests/synth_seis_test.py index <HASH>..<HASH> 100644 --- a/eqcorrscan/tests/synth_seis_test.py +++ b/eqcorrscan/tests/synth_seis_test.py @@ -68,7 +68,7 @@ class TestTemplateGrid(unittest.TestCase): cls.stations = ['ALPH', 'BETA', 'GAMM', 'KAPP', 'ZE...
Firce nodes to be a list
py
diff --git a/cherrypy/_cpmodpy.py b/cherrypy/_cpmodpy.py index <HASH>..<HASH> 100644 --- a/cherrypy/_cpmodpy.py +++ b/cherrypy/_cpmodpy.py @@ -77,7 +77,7 @@ def setup(req): options = req.get_options() if 'cherrypy.setup' in options: for function in options['cherrypy.setup'].split(): - atom...
Oops. Fix for buglet introduced in [<I>].
py
diff --git a/firecloud/fiss.py b/firecloud/fiss.py index <HASH>..<HASH> 100644 --- a/firecloud/fiss.py +++ b/firecloud/fiss.py @@ -12,6 +12,7 @@ import os import time from inspect import getsourcelines from traceback import print_tb as print_traceback +from io import open import argparse import subprocess import ...
Fixed entity_import * Override open built-in with io.open, to enable universal newline default behavior (and improve python 2/3 compatibility). * Only strip newline characters from line ends of entity TSVs rather than all whitespace (Fixes #<I>).
py
diff --git a/tests/integration/shell/test_cp.py b/tests/integration/shell/test_cp.py index <HASH>..<HASH> 100644 --- a/tests/integration/shell/test_cp.py +++ b/tests/integration/shell/test_cp.py @@ -84,7 +84,7 @@ class CopyTest(ShellCase, ShellCaseCommonTestsMixin): pipes.quote(minion_testfile) ...
Use eval instead of yaml loading the pprint output Since the YAML renderer no longer supports this, we can't use it to load structures with unicode literal strings within them.
py
diff --git a/synphot/spectrum.py b/synphot/spectrum.py index <HASH>..<HASH> 100644 --- a/synphot/spectrum.py +++ b/synphot/spectrum.py @@ -1232,9 +1232,31 @@ class SpectralElement(BaseUnitlessSpectrum): def check_overlap(self, other, wavelengths=None, threshold=0.01): """Check for wavelength overlap betwe...
Make overlap result consistent with ASTROLIB PYSYNPHOT
py
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py index <HASH>..<HASH> 100755 --- a/astrodbkit/astrodb.py +++ b/astrodbkit/astrodb.py @@ -1949,9 +1949,9 @@ def convert_spectrum(File, verbose=False): tempwav = __create_waxis(header, len(spectrum[1]), File) # Check to see if i...
tentative fix for issue #<I>
py
diff --git a/doctr/__main__.py b/doctr/__main__.py index <HASH>..<HASH> 100644 --- a/doctr/__main__.py +++ b/doctr/__main__.py @@ -296,10 +296,11 @@ def deploy(args, parser): print("Don't have permission to push. Not trying.") else: print("The docs have not changed. Not updating")...
Print the exception message in red This should make it easier to see what happened (even if it's not in the context of the error). Most exceptions will be sys.exit() from a failed command.
py
diff --git a/chalice/config.py b/chalice/config.py index <HASH>..<HASH> 100644 --- a/chalice/config.py +++ b/chalice/config.py @@ -155,11 +155,11 @@ class Config(object): if major == 2: return 'python2.7' # Python 3 for backwards compatibility needs to select python3.6 - # for pyth...
Fix typo bug in lambda python version detection Also made the logic slightly more explicit.
py
diff --git a/selenium_test/steps/general.py b/selenium_test/steps/general.py index <HASH>..<HASH> 100644 --- a/selenium_test/steps/general.py +++ b/selenium_test/steps/general.py @@ -236,7 +236,6 @@ def step_impl(context, choice): util = context.util if choice == "completely ": - # We must not call i...
Removed a pointless comment.
py
diff --git a/tests/preprocessor_test.py b/tests/preprocessor_test.py index <HASH>..<HASH> 100644 --- a/tests/preprocessor_test.py +++ b/tests/preprocessor_test.py @@ -23,8 +23,7 @@ class TestPreprocessor(unittest.TestCase): pass def test_empty(self): - with self.assertRaises(TypeError): - ...
make preprocessor_test.py work with python<I>
py
diff --git a/tests/integration/minion/test_executor.py b/tests/integration/minion/test_executor.py index <HASH>..<HASH> 100644 --- a/tests/integration/minion/test_executor.py +++ b/tests/integration/minion/test_executor.py @@ -1,8 +1,5 @@ -# Import python libs - import logging -# Import Salt Testing libs from tests...
Drop Py2 and six on tests/integration/minion/test_executor.py
py
diff --git a/synapse/cores/common.py b/synapse/cores/common.py index <HASH>..<HASH> 100644 --- a/synapse/cores/common.py +++ b/synapse/cores/common.py @@ -2403,9 +2403,10 @@ class Cortex(EventBus, DataModel, Runtime, s_ingest.IngestApi): if ctor is not None: return ctor(prop, valu, **props) + ...
Ensure that we are not working with a valid type but a form
py
diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py index <HASH>..<HASH> 100644 --- a/pandas/tseries/offsets.py +++ b/pandas/tseries/offsets.py @@ -1,5 +1,4 @@ from datetime import datetime, timedelta -import operator import numpy as np
CI: Remove unused import in offsets.py (#<I>)
py
diff --git a/acos_client/v30/slb/server.py b/acos_client/v30/slb/server.py index <HASH>..<HASH> 100644 --- a/acos_client/v30/slb/server.py +++ b/acos_client/v30/slb/server.py @@ -26,6 +26,9 @@ class Server(base.BaseV30): return self._get(self.url_prefix + name, max_retries=max_retries, timeout=timeout, ...
Added an api for getting all servers present on a vthunder
py
diff --git a/salt/roster/cloud.py b/salt/roster/cloud.py index <HASH>..<HASH> 100644 --- a/salt/roster/cloud.py +++ b/salt/roster/cloud.py @@ -8,6 +8,13 @@ maintains an index of minions that it creates and deletes. This index tracks the provider and profile configuration used to provision the minion, including authen...
doc: added documentation to cloud roster and fixed whitespace
py
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/classical.py +++ b/openquake/calculators/classical.py @@ -314,7 +314,7 @@ class ClassicalCalculator(PSHACalculator): for t in self.sitecol.split_in_tiles(self.oqparam.con...
Better logging [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,13 +22,13 @@ setup( """different large-scale sections and label them based on their """ """acoustic similarity""", classifiers=[ - "License :: OSI Approved :: MIT", + "License :: OSI Approved :...
Updated the metadata to start uploading to pypi Former-commit-id: d<I>de<I>f<I>d6f<I>fd6ddbba<I>a3f6cef Former-commit-id: <I>e0b<I>d<I>d<I>ecd2e<I>c4fdab7b<I>e<I>bc<I>
py
diff --git a/pyblish_lite/window.py b/pyblish_lite/window.py index <HASH>..<HASH> 100644 --- a/pyblish_lite/window.py +++ b/pyblish_lite/window.py @@ -637,12 +637,13 @@ class Window(QtWidgets.QDialog): # Emit signals if index.data(model.Type) == "instance": + instance = self.data["models"...
Workaround for index.data(model.Object) not returning the correct object.
py
diff --git a/bigquery/schema_builder.py b/bigquery/schema_builder.py index <HASH>..<HASH> 100644 --- a/bigquery/schema_builder.py +++ b/bigquery/schema_builder.py @@ -126,7 +126,7 @@ def bigquery_type(o, timestamp_parser=default_timestamp_parser): """ t = type(o) - if t == int: + if t == int or t == l...
Add support for long in schema_builder
py
diff --git a/scanpy/neighbors/__init__.py b/scanpy/neighbors/__init__.py index <HASH>..<HASH> 100644 --- a/scanpy/neighbors/__init__.py +++ b/scanpy/neighbors/__init__.py @@ -678,7 +678,7 @@ class Neighbors(): self.knn = knn X = choose_representation(self._adata, use_rep=use_rep, n_pcs=n_pcs) ...
use dense distance matrix when knn is False
py
diff --git a/dipper/sources/Coriell.py b/dipper/sources/Coriell.py index <HASH>..<HASH> 100644 --- a/dipper/sources/Coriell.py +++ b/dipper/sources/Coriell.py @@ -254,8 +254,8 @@ class Coriell(Source): #Add the patient as a person with label. #TODO:Abstract this to an addPerson...
Coriell.py: Error correction of declaring patient ID as person.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -5,8 +5,7 @@ import sys if sys.version_info < (2, 7): - sys.stderr.write('autoflake requires Python >= 2.7\n') - sys.exit(1) + raise SystemExit('autoflake requires Python >= 2.7\n') def version():
Use SystemExit instead of printing and exiting
py
diff --git a/sitetree/management/commands/sitetreeload.py b/sitetree/management/commands/sitetreeload.py index <HASH>..<HASH> 100644 --- a/sitetree/management/commands/sitetreeload.py +++ b/sitetree/management/commands/sitetreeload.py @@ -4,6 +4,7 @@ from collections import defaultdict from django.core import serial...
fix bug that occurs when using color terminal
py
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/oqvalidation.py +++ b/openquake/commonlib/oqvalidation.py @@ -70,7 +70,7 @@ class OqParam(valid.ParamSet): discard_assets = valid.Param(valid.boolean, False) distance_bi...
Reduced ebrisk_maxweight [skip hazardlib]
py
diff --git a/msrest/polling/poller.py b/msrest/polling/poller.py index <HASH>..<HASH> 100644 --- a/msrest/polling/poller.py +++ b/msrest/polling/poller.py @@ -172,7 +172,7 @@ class LROPoller(object): return self._polling_method.status() def result(self, timeout=None): - # type: (Optional[int]) ->...
Fix the type for LROPoller wait timeout (#<I>) Thread.join(), as called by wait(), accepts fractional seconds, so the type for wait() should reflect that.
py
diff --git a/tests/basics/lexer.py b/tests/basics/lexer.py index <HASH>..<HASH> 100644 --- a/tests/basics/lexer.py +++ b/tests/basics/lexer.py @@ -9,6 +9,14 @@ exec("\n") exec("\n\n") exec("\r") exec("\r\r") +exec("\t") +exec("\r\n") +exec("\nprint(1)") +exec("\rprint(2)") +exec("\r\nprint(3)") +exec("\n5") +exec("\...
tests/basics/lexer: Add lexer tests for input starting with newlines.
py
diff --git a/flask_googlemaps/__init__.py b/flask_googlemaps/__init__.py index <HASH>..<HASH> 100644 --- a/flask_googlemaps/__init__.py +++ b/flask_googlemaps/__init__.py @@ -2,7 +2,7 @@ from flask import render_template, Blueprint, Markup -DEFAULT_ICON = 'http://maps.google.com/mapfiles/ms/icons/red-dot.png' +DEF...
Protocol bases URL in icon, related to #<I>
py
diff --git a/formats/fql.py b/formats/fql.py index <HASH>..<HASH> 100644 --- a/formats/fql.py +++ b/formats/fql.py @@ -1313,8 +1313,10 @@ class Action(object): #Action expression query._touch(focus) elif action.action == "DELETE": ...
FQL: return type ancestor-focus now works on deleted elements too
py
diff --git a/angr/procedures/definitions/glibc.py b/angr/procedures/definitions/glibc.py index <HASH>..<HASH> 100644 --- a/angr/procedures/definitions/glibc.py +++ b/angr/procedures/definitions/glibc.py @@ -8,6 +8,6 @@ libc.add_all_from_dict(P['posix']) libc.add_all_from_dict(P['glibc']) libc.add_alias('abort', '__as...
somebody please take away my ability to push straight to master
py
diff --git a/examples/python/rsc.py b/examples/python/rsc.py index <HASH>..<HASH> 100755 --- a/examples/python/rsc.py +++ b/examples/python/rsc.py @@ -25,6 +25,11 @@ from __future__ import print_function import time, sys, signal, atexit from upm import pyupm_rsc as rsc +# Since CI loads each python example, the fol...
rsc.py: Added snippet to test rsc_regs.h types Since UPM Travis-CI runs ctests (one of which loads python examples), the added lines would fail if the RSC_DATA_RATE and RSC_MODE have not been included in the python rsc module.)
py
diff --git a/fastbill/__init__.py b/fastbill/__init__.py index <HASH>..<HASH> 100644 --- a/fastbill/__init__.py +++ b/fastbill/__init__.py @@ -116,7 +116,10 @@ class FastbillResponse(dict): @property def currency(self): - return CURRENCIES[int(self.currency_code)] + try: + return CU...
Change exception thrown by currency property to AttributeError
py
diff --git a/andes/routines/tds.py b/andes/routines/tds.py index <HASH>..<HASH> 100644 --- a/andes/routines/tds.py +++ b/andes/routines/tds.py @@ -398,7 +398,7 @@ class TDS(BaseRoutine): As = system.dae.fx - system.dae.fy * B freq = max(abs(As[0, 0]), 1) else: - freq = 20.0...
Updated the maximum time step size so that the variable step size yields more smooth outputs (takes longer, however)
py
diff --git a/synapse/lib/cache.py b/synapse/lib/cache.py index <HASH>..<HASH> 100644 --- a/synapse/lib/cache.py +++ b/synapse/lib/cache.py @@ -1,6 +1,7 @@ ''' A few speed optimized (lockless) cache helpers. Use carefully. ''' +import re import asyncio import collections @@ -113,7 +114,7 @@ class TagGlobs: ...
escape tag parts to avoid regex injection
py
diff --git a/report/writeup/generate_tutorials.py b/report/writeup/generate_tutorials.py index <HASH>..<HASH> 100644 --- a/report/writeup/generate_tutorials.py +++ b/report/writeup/generate_tutorials.py @@ -137,8 +137,8 @@ def main(): print '!!! Fount the autogenerated tutorial files directory, removing it' ...
added sorting of files for generate_tutorials.py that might fix issues quentin was havving
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -35,15 +35,15 @@ setuptools.setup( version=http.__version__, description='Tornado HTTP application runner', author='AWeber Communications', + author_email='api@aweber.com', url='https://github.com/sprock...
Update package metadata. PyPI requires author_email if author is set and apparently Tornado is not a valid web framework.
py
diff --git a/allauth/socialaccount/providers/oauth2/client.py b/allauth/socialaccount/providers/oauth2/client.py index <HASH>..<HASH> 100644 --- a/allauth/socialaccount/providers/oauth2/client.py +++ b/allauth/socialaccount/providers/oauth2/client.py @@ -46,6 +46,7 @@ class OAuth2Client(object): 'scope...
Strip away empty params in OAuth2 client on login The Dropbox OAuth2 API doesn't allow for the `scope` key, so to work around that empty keys will now be removed. My thinking is that if the key is empty the remote side ought to accept the value to be missing.
py
diff --git a/pyModbusTCP/client.py b/pyModbusTCP/client.py index <HASH>..<HASH> 100644 --- a/pyModbusTCP/client.py +++ b/pyModbusTCP/client.py @@ -178,6 +178,7 @@ class ModbusClient(object): """Get or set requests timeout (default is 30 seconds). The argument may be a floating point number for sub-s...
client: timeout change close current socket
py
diff --git a/tests/integration/test_stubs.py b/tests/integration/test_stubs.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_stubs.py +++ b/tests/integration/test_stubs.py @@ -1,4 +1,5 @@ import vcr +import zlib import six.moves.http_client as httplib from assertions import assert_is_json @@ -69,7 +70,9...
unzip bodies before comparing. Fixes #<I>
py
diff --git a/test_flake8_future_import.py b/test_flake8_future_import.py index <HASH>..<HASH> 100644 --- a/test_flake8_future_import.py +++ b/test_flake8_future_import.py @@ -230,7 +230,6 @@ class TestBadSyntax(TestCaseBase): """Test using various bad syntax examples from Python's library.""" -@unittest.skipIf...
Remove skip for flake8 tests and Python versions above <I> A previous commit disabled flake8 on Python versions <I> and above as it only supported Python <I> and below. It also compares the location of the paths using `os.path.samefile` so that paths with different capitalization are equal on Windows.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ with codecs.open('README.rst', encoding='utf-8') as fobj: setup( name='Gutenberg', - version='0.8.0', + version='0.8.1', author='Clemens Wolff', author_email='clemens.wolff+pypi@gmail.com...
Update version to <I> (#<I>)
py
diff --git a/trimesh/exchange/binvox.py b/trimesh/exchange/binvox.py index <HASH>..<HASH> 100644 --- a/trimesh/exchange/binvox.py +++ b/trimesh/exchange/binvox.py @@ -73,10 +73,9 @@ def parse_binvox(fp, writeable=False): data = fp.read() if hasattr(data, 'encode'): data = data.encode() + rle_data ...
changed fromstring to frombuffer(...).copy()
py
diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py index <HASH>..<HASH> 100644 --- a/salt/modules/timezone.py +++ b/salt/modules/timezone.py @@ -496,7 +496,7 @@ def set_hwclock(clock): salt '*' timezone.set_hwclock UTC ''' - if salt.utils.which('timedatectl'): + if salt.utils.path.wh...
Update utils path for which function to new path
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import setup setup( name = "adapt-parser", - version = "0.2.2", + version = "0.2.4", author = "Sean Fitzgerald", author_email = "sean@fitzgeralds.me", description = ("A...
I've resorted to just changing the pyee version in setup.py, so I can get it into pip and keep movign on packaging mycroft
py
diff --git a/slim/support/peewee/view.py b/slim/support/peewee/view.py index <HASH>..<HASH> 100644 --- a/slim/support/peewee/view.py +++ b/slim/support/peewee/view.py @@ -173,7 +173,7 @@ class PeeweeSQLFunctions(AbstractSQLFunctions): if self.err: return self.err count = q.count() pg = pagina...
fixed crash for list when got nothing from database (peewee view)
py
diff --git a/pprofile.py b/pprofile.py index <HASH>..<HASH> 100755 --- a/pprofile.py +++ b/pprofile.py @@ -204,11 +204,10 @@ class _FileTiming(object): frame (frame) calle's entire frame as of its return """ - key = (line, callee_file_timing.filename, callee) try: - ...
pprofile: Change FileTiming.call_dict content. Keying by callee filename is redundant with keying by callee. Removed. Access to callee filename is still needed, add callee_file_timing in value. Keying by caller is more accurate than by line. Added. Caller frame is now redundant in value. Removed. Update caller.
py
diff --git a/twarc.py b/twarc.py index <HASH>..<HASH> 100755 --- a/twarc.py +++ b/twarc.py @@ -813,6 +813,7 @@ class Twarc(object): else: self.connect() kwargs['connection_error_count'] = connection_error_count + kwargs['allow_404'] = allow_404 ...
Added allow_<I> kwargs to get retry to avoid recursion problem for missing user lookups or timelines.
py
diff --git a/splinter/driver/webdriver/firefox.py b/splinter/driver/webdriver/firefox.py index <HASH>..<HASH> 100644 --- a/splinter/driver/webdriver/firefox.py +++ b/splinter/driver/webdriver/firefox.py @@ -4,7 +4,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE fil...
Remove use of DesiredCapabilities object, use Options object instead (#<I>)
py
diff --git a/pytablereader/spreadsheet/gsloader.py b/pytablereader/spreadsheet/gsloader.py index <HASH>..<HASH> 100644 --- a/pytablereader/spreadsheet/gsloader.py +++ b/pytablereader/spreadsheet/gsloader.py @@ -162,9 +162,9 @@ class GoogleSheetsTableLoader(SpreadSheetLoader): if any([typepy.is_not_null_str...
Refactor: rename a variable
py
diff --git a/torequests/main.py b/torequests/main.py index <HASH>..<HASH> 100644 --- a/torequests/main.py +++ b/torequests/main.py @@ -7,7 +7,6 @@ from concurrent.futures import ( ProcessPoolExecutor, ThreadPoolExecutor, as_completed, - wait, ) from concurrent.futures._base import Error, Executor, F...
fix #9 tPool.x can not be stop by keyboardinterupt
py
diff --git a/src/toil/common.py b/src/toil/common.py index <HASH>..<HASH> 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -984,13 +984,16 @@ class Toil: userScript = None else: # This branch is hit on restarts - from toil.jobStores.abstractJobStore impor...
Only deploy a user script if we can deploy user scripts (#<I>)
py
diff --git a/PyFunceble.py b/PyFunceble.py index <HASH>..<HASH> 100755 --- a/PyFunceble.py +++ b/PyFunceble.py @@ -394,7 +394,7 @@ class PyFunceble(object): """ def __init__(self, domain=None, file_path=None): - + self.bypass() ExecutionTime('start') if domain is not None and doma...
Introduction of PyFunceble.bypass() which is used to skip the execution of [\PyFunceble skip\] is matched into the current commit message
py
diff --git a/salt/master.py b/salt/master.py index <HASH>..<HASH> 100644 --- a/salt/master.py +++ b/salt/master.py @@ -2275,7 +2275,7 @@ class ClearFuncs(object): # Get the returner's save_load arg_spec. try: - arg_spec = salt.utils.args.get_function_argspec(fstr) + ...
Correct errant call to argspec from master. Fix ext_job_cache. (#<I>) We were passing a string to the argpsec checker when it expects the actual func.
py
diff --git a/karaage/context_processors.py b/karaage/context_processors.py index <HASH>..<HASH> 100644 --- a/karaage/context_processors.py +++ b/karaage/context_processors.py @@ -35,3 +35,9 @@ def registration(request): if user_apps or project_apps: ctx['pending_applications'] = True return c...
New contect processor for admin pending applications
py
diff --git a/collections_extended/setlists.py b/collections_extended/setlists.py index <HASH>..<HASH> 100644 --- a/collections_extended/setlists.py +++ b/collections_extended/setlists.py @@ -34,8 +34,11 @@ class _basesetlist(Sequence, Set): if len(self) == 0: return '{0}()'.format(self.__class__.__name__) els...
Fix #<I> - don't use 'format' as a variable name.
py
diff --git a/csvpandas/subcommands/sample.py b/csvpandas/subcommands/sample.py index <HASH>..<HASH> 100644 --- a/csvpandas/subcommands/sample.py +++ b/csvpandas/subcommands/sample.py @@ -93,7 +93,7 @@ def action(args): frac=args.n, replace=args.replace, random_state=seed) else: sample = df.sa...
enforce integer unless fraction less than 1
py
diff --git a/plaso/formatters/olecf.py b/plaso/formatters/olecf.py index <HASH>..<HASH> 100644 --- a/plaso/formatters/olecf.py +++ b/plaso/formatters/olecf.py @@ -159,7 +159,7 @@ class OleCfSummaryInfoFormatter(interface.ConditionalEventFormatter): security = event_values.get(u'security', None) if security: ...
Code review: <I>: Updated olecf.py to fix google/timesketch#6
py
diff --git a/djangosaml2/views.py b/djangosaml2/views.py index <HASH>..<HASH> 100644 --- a/djangosaml2/views.py +++ b/djangosaml2/views.py @@ -115,6 +115,11 @@ def assertion_consumer_service(request): # authenticate the remote user session_info = response.session_info() + + if 'djangosaml2.backends.Saml2...
Automatically add our auth backend into the beginning of the auth backends list
py
diff --git a/sqlparse/formatter.py b/sqlparse/formatter.py index <HASH>..<HASH> 100644 --- a/sqlparse/formatter.py +++ b/sqlparse/formatter.py @@ -76,11 +76,11 @@ def build_filter_stack(stack, options): options: Dictionary with options validated by validate_options. """ # Token filter - if 'keyword_...
Check for None values in options dict, reported by Marco<I>. See <URL> got lost since both are in the options dict, but with None as value.
py
diff --git a/openquake/hazardlib/site.py b/openquake/hazardlib/site.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/site.py +++ b/openquake/hazardlib/site.py @@ -426,9 +426,10 @@ class SiteCollection(object): return [self] hint = int(numpy.ceil(N / max_sites_per_tile)) tiles = []...
Splitting in homogeneous tiles
py
diff --git a/tests/test_issues.py b/tests/test_issues.py index <HASH>..<HASH> 100644 --- a/tests/test_issues.py +++ b/tests/test_issues.py @@ -40,6 +40,24 @@ class IssuesTests(unittest.TestCase): d.parse_docs(txt) self.assertTrue(d.get_raw_docs() == expected) + def testIssue19(self): + txt...
Add test for issue <I>
py
diff --git a/i18nfield/forms.py b/i18nfield/forms.py index <HASH>..<HASH> 100644 --- a/i18nfield/forms.py +++ b/i18nfield/forms.py @@ -53,7 +53,7 @@ class I18nWidget(forms.MultiWidget): if dataline: any_enabled_filled = True data.append(dataline) - if value and ...
Fix handling of gettext proxies in forms
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -306,13 +306,17 @@ class Svtplay(Service, MetadataThumbMixin): if "validFrom" in episode: def _fix_bro...
svtplay: fix a crash if they include "Z" in the validFrom fixes: #<I>
py