diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -139,8 +139,8 @@ def read_scamp_head(fname, header=None): The path to the SCAMP .head file header: FITSHDR, optional - Optionally add to the scamp keywods directly to ...
update docs on read scamp
py
diff --git a/tests/unit/pydsl_test.py b/tests/unit/pydsl_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/pydsl_test.py +++ b/tests/unit/pydsl_test.py @@ -66,7 +66,11 @@ state('A').service.running(name='apache') # 2 rather than 1 because pydsl adds an extra no-op state # declaration. - s ...
Fix a bug in the pydsl test case.
py
diff --git a/tests/test_form.py b/tests/test_form.py index <HASH>..<HASH> 100644 --- a/tests/test_form.py +++ b/tests/test_form.py @@ -366,5 +366,26 @@ def test_issue180(): form.choose_submit('not_found') +def test_issue158(): + """Test that form elements are processed in their order on the page + an...
test_form.py: add test_issue<I> Related to #<I>. Test that form elements with the same name attribute do not overwrite each other, and are all processed by the Requests session.
py
diff --git a/symfit/core/models.py b/symfit/core/models.py index <HASH>..<HASH> 100644 --- a/symfit/core/models.py +++ b/symfit/core/models.py @@ -47,13 +47,13 @@ class ModelOutput(tuple): try: var = self.variable_names[name] except KeyError as err: - raise AttributeError(err.m...
Processed some suggestions by @pckroon
py
diff --git a/dvc/__init__.py b/dvc/__init__.py index <HASH>..<HASH> 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable. """ import os -VERSION_BASE = '0.15.0' +VERSION_BASE = '0.15.1' __version__ = VERSION_BASE PACKAGEPATH = os.path.absp...
dvc: bump to <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ try: except (IOError, ImportError): long_description = open('README.md').read() -common_install_requires = ['future<=1.0.0', 'six<=2.0.0', 'dill==0.2.5', 'tabulate<=1.0.0'] +common_install_requires = ['fut...
Update setup.py dill to requirements.txt (#<I>) * update setup.py dill to requirements.txt * fixed ordering
py
diff --git a/hug/json_module.py b/hug/json_module.py index <HASH>..<HASH> 100644 --- a/hug/json_module.py +++ b/hug/json_module.py @@ -13,6 +13,7 @@ try: def __call__(self, *args, **kwargs): kwargs.pop('default', None) + kwargs.pop('separators', None) kwar...
- fix 'separators' kwarg not supported by ujson
py
diff --git a/yarn/tests/common.py b/yarn/tests/common.py index <HASH>..<HASH> 100644 --- a/yarn/tests/common.py +++ b/yarn/tests/common.py @@ -4,6 +4,7 @@ import os +from datadog_checks.dev import get_docker_hostname from datadog_checks.yarn.yarn import ( YARN_APPLICATION_STATES, YARN_APPS_PATH, @@ -18,...
Make tests work on non-locahost docker (#<I>)
py
diff --git a/tldap/models.py b/tldap/models.py index <HASH>..<HASH> 100644 --- a/tldap/models.py +++ b/tldap/models.py @@ -141,7 +141,7 @@ class shadowAccount(tldap.base.LDAPobject): shadowLastChange = tldap.fields.IntegerField() shadowMin = tldap.fields.IntegerField() shadowMax = tldap.fields.IntegerFie...
shadowWarning is an integer.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -22,11 +22,11 @@ setup( "Programming Language :: Python", "Framework :: Django", ], - # install_requires=[ - # "Django >= 1.4.1", - # "redis == 2.4.10", - # "celery", - ...
Uncommented install_requires in setup file
py
diff --git a/tests/webserver/test_route.py b/tests/webserver/test_route.py index <HASH>..<HASH> 100644 --- a/tests/webserver/test_route.py +++ b/tests/webserver/test_route.py @@ -2,6 +2,7 @@ import pytest from webtest.app import AppError +""" def test_index_route(client): response = client.get('/') asse...
New Release Prep <I>;
py
diff --git a/astrobase/hatpilc.py b/astrobase/hatpilc.py index <HASH>..<HASH> 100644 --- a/astrobase/hatpilc.py +++ b/astrobase/hatpilc.py @@ -83,4 +83,7 @@ def read_hatpi_txtlc(lcfile): hatid = HATIDREGEX.findall(lcfile) lcdict['objectid'] = hatid[0] if hatid else 'unknown object' + # add th...
hatpilc: add column defs to lcdict
py
diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/sourcecode/codeeditor.py +++ b/spyder/widgets/sourcecode/codeeditor.py @@ -2551,9 +2551,10 @@ class CodeEditor(TextEditBaseWidget): self.unindent() e...
Accept keybopard event in CodeEditor to avoit it being handled by the parent.
py
diff --git a/chevron/metadata.py b/chevron/metadata.py index <HASH>..<HASH> 100644 --- a/chevron/metadata.py +++ b/chevron/metadata.py @@ -1 +1 @@ -version = '0.12.2' +version = '0.12.3'
Bump patch version number for PyPi test
py
diff --git a/raiden/storage/wal.py b/raiden/storage/wal.py index <HASH>..<HASH> 100644 --- a/raiden/storage/wal.py +++ b/raiden/storage/wal.py @@ -48,7 +48,7 @@ def restore_to_state_change( Range(from_identifier, state_change_identifier) ) if unapplied_state_changes: - log.debug("Replaying sta...
Added the replayed state changes to the debug log
py
diff --git a/test/countries/test_venezuela.py b/test/countries/test_venezuela.py index <HASH>..<HASH> 100644 --- a/test/countries/test_venezuela.py +++ b/test/countries/test_venezuela.py @@ -58,6 +58,8 @@ class TestVenezuela(unittest.TestCase): self.assertEqual( self.holidays[date(2019, 10, 12)], ...
Updated venezuela.py I added "Muerte del Libertador Simón Bolívar" test, which was missing, though, some people say its not a true holiday, but it is in my experience
py
diff --git a/flask_appbuilder/models/sqla/interface.py b/flask_appbuilder/models/sqla/interface.py index <HASH>..<HASH> 100644 --- a/flask_appbuilder/models/sqla/interface.py +++ b/flask_appbuilder/models/sqla/interface.py @@ -586,7 +586,6 @@ class SQLAInterface(BaseInterface): and (not self.is_fk(...
[api] Fix, re-allow filtering by booleans (default generated list) (#<I>) don't exclude boolean from get_search_columns_list
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 @@ -2762,7 +2762,8 @@ class Requirement(packaging.requirements.Requirement): except packaging.requirements.InvalidRequirement as e: raise R...
Add in safe_name for project_name, which disappeared in my refactor.
py
diff --git a/ella/api/serialization.py b/ella/api/serialization.py index <HASH>..<HASH> 100644 --- a/ella/api/serialization.py +++ b/ella/api/serialization.py @@ -1,6 +1,7 @@ import logging from django.http import HttpResponse +from django.utils.cache import patch_vary_headers __all__ = ['response_serializer', '...
let the api play nice with cache
py
diff --git a/niworkflows/utils/spaces.py b/niworkflows/utils/spaces.py index <HASH>..<HASH> 100644 --- a/niworkflows/utils/spaces.py +++ b/niworkflows/utils/spaces.py @@ -355,7 +355,7 @@ class SpatialReferences: """ - __slots__ = ('_spaces') + __slots__ = ('_spaces',) standard_spaces = tuple(_tfapi....
Update niworkflows/utils/spaces.py
py
diff --git a/glue/ldbd.py b/glue/ldbd.py index <HASH>..<HASH> 100644 --- a/glue/ldbd.py +++ b/glue/ldbd.py @@ -110,7 +110,7 @@ class LIGOMetadataDatabase: conn = DB2.connect(dsn=database, uid='', pwd='') curs = conn.cursor() curs.execute("SELECT tabname FROM syscat.tables WHERE definer<>'SYSIBM' " - ...
make sure we get the tables in the right order to satisfy constraints
py
diff --git a/fragments/commands.py b/fragments/commands.py index <HASH>..<HASH> 100644 --- a/fragments/commands.py +++ b/fragments/commands.py @@ -353,10 +353,12 @@ def fork(*args): config.dump() +try: + raw_input +except NameError: # pragma: no cover # Python 3 support + raw_input = input + def _main()...
better way to detect raw_input
py
diff --git a/metrics/bigquery.py b/metrics/bigquery.py index <HASH>..<HASH> 100755 --- a/metrics/bigquery.py +++ b/metrics/bigquery.py @@ -151,6 +151,11 @@ def main(configs, project, bucket_path): """Loads metric config files and runs each metric.""" queryer = BigQuerier(project, bucket_path) + # authent...
metrics: support workload identity moving the job that runs this from a bootstrap-based prowjob (which performs this gcloud auth check before invoking its arguments) to a decorated job (which leaves this responsibility to the command being invoked)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,8 @@ For full docs visit https://docs.bigchaindb.com """ from setuptools import setup, find_packages -import sys -if sys.version_info < (3, 6): - sys.exit('Please use python version 3.6 or higher') - # get...
Problem: Python version is not compatible with the Driver (#<I>) Solution: revert commit d<I>b<I>c<I>f<I>b<I>ef<I>fb<I>.
py
diff --git a/astroid/builder.py b/astroid/builder.py index <HASH>..<HASH> 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -127,11 +127,11 @@ class AstroidBuilder(raw_building.InspectBuilder): except IOError as exc: raise exceptions.AstroidBuildingError( 'Unable to load...
Bring back error as we use it for exposing it as a public API in pylint
py
diff --git a/angr/analyses/analysis.py b/angr/analyses/analysis.py index <HASH>..<HASH> 100644 --- a/angr/analyses/analysis.py +++ b/angr/analyses/analysis.py @@ -108,7 +108,7 @@ class AnalysisFactory(Generic[A]): @functools.wraps(self._analysis_cls.__init__) def wrapper(*args, **kwargs): ...
un-break resilience with named errors; closes #<I>
py
diff --git a/src/VertexPartition.py b/src/VertexPartition.py index <HASH>..<HASH> 100644 --- a/src/VertexPartition.py +++ b/src/VertexPartition.py @@ -891,6 +891,7 @@ class CPMVertexPartition(LinearResolutionParameterVertexPartition): initial_membership, weights, node_sizes, resolution_parameter) self._up...
Now explicitly marked Bipartite as staticmethod.
py
diff --git a/pyt/cfg.py b/pyt/cfg.py index <HASH>..<HASH> 100644 --- a/pyt/cfg.py +++ b/pyt/cfg.py @@ -362,7 +362,7 @@ class CFG(ast.NodeVisitor): call_label = call.label call_assignment = AssignmentNode(left_hand_label + ' = ' + call_label, left_hand_label) - call.connect(call_as...
Removed call connected to call_assignment
py
diff --git a/flask_recaptcha.py b/flask_recaptcha.py index <HASH>..<HASH> 100644 --- a/flask_recaptcha.py +++ b/flask_recaptcha.py @@ -3,15 +3,22 @@ Flask-reCaptcha """ __NAME__ = "Flask-reCaptcha" -__version__ = "0.1" +__version__ = "0.2" __license__ = "MIT" __author__ = "Mardix" __copyright__ = "(c) 2014 Mardi...
<I> Make sure 3rd party exist before importing
py
diff --git a/example/conf/settings.py b/example/conf/settings.py index <HASH>..<HASH> 100644 --- a/example/conf/settings.py +++ b/example/conf/settings.py @@ -1,4 +1,5 @@ import os +import django # Django settings for conf project. settings_dir = os.path.dirname(__file__) @@ -15,8 +16,8 @@ MANAGERS = ADMINS DAT...
Remove South except for older Django
py
diff --git a/redis/commands.py b/redis/commands.py index <HASH>..<HASH> 100644 --- a/redis/commands.py +++ b/redis/commands.py @@ -843,7 +843,7 @@ class Commands: opset = set([ex, px, exat, pxat]) if len(opset) > 2 or len(opset) > 1 and persist: - raise DataError("``ex``, ``px``, ``exat``...
Use Oxford comma properly in getex (#<I>)
py
diff --git a/src/saml2/entity.py b/src/saml2/entity.py index <HASH>..<HASH> 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -305,7 +305,7 @@ class Entity(HTTPBase): sfunc = getattr(self.metadata, service) - if bindings is None: + if not bindings: if request and requ...
Do not restrict the falsy values of bindings on pick_binding method
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -1004,7 +1004,13 @@ class BaseSheet: def getCommand(self, keystrokes_or_longname): longname = bindkeys.get(keystrokes_or_longname) - return commands.get(longname if lo...
[vdtui] be specific with error msgs in getCommand
py
diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/hosts/remotes.py +++ b/ceph_deploy/hosts/remotes.py @@ -42,7 +42,7 @@ def machine_type(): def write_sources_list(url, codename, filename='ceph.list'): - """add deb repo to sources.list""" + ...
[RM-<I>] Clarify comments when writing repo files These comments get printed to the console, and were a bit misleading/ambiguous.
py
diff --git a/natsort/natsort.py b/natsort/natsort.py index <HASH>..<HASH> 100644 --- a/natsort/natsort.py +++ b/natsort/natsort.py @@ -189,19 +189,19 @@ def natsort_keygen(key=None, alg=0, **_kwargs): @u_format def natsorted(seq, key=None, reverse=False, alg=0, **_kwargs): """\ - Sorts a sequence naturally. +...
DOC: Changed "sequence" to "iterable" Seemed like a good idea since I had to try it out before deciding that the docs were not precise.
py
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index <HASH>..<HASH> 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -313,7 +313,8 @@ class SaltScriptBase(object): if not os.path.isdir(TMP_SCRIPT_DIR): os.makedirs(TMP_SCRIPT_DIR) - ...
Make the generated scripts more windows friendly
py
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/nova.py +++ b/salt/cloud/clouds/nova.py @@ -590,7 +590,7 @@ def create(vm_): err ), # Show the traceback if the debug logging level is enabled - ...
Use `exc_info_on_loglevel` instead of `exc_info`
py
diff --git a/pipeline/compilers/__init__.py b/pipeline/compilers/__init__.py index <HASH>..<HASH> 100644 --- a/pipeline/compilers/__init__.py +++ b/pipeline/compilers/__init__.py @@ -30,7 +30,11 @@ class Compiler(object): try: infile = finders.find(input_path) ...
Fix an IOError when collecting a new file which need to be compiled
py
diff --git a/src/pyrocore/scripts/rtcontrol.py b/src/pyrocore/scripts/rtcontrol.py index <HASH>..<HASH> 100644 --- a/src/pyrocore/scripts/rtcontrol.py +++ b/src/pyrocore/scripts/rtcontrol.py @@ -171,7 +171,8 @@ class RtorrentControl(ScriptBaseWithConfig): help="add or remove tag(s)", interactive=False), ...
TODO for --unique and --with-dupes
py
diff --git a/tests/test_declare.py b/tests/test_declare.py index <HASH>..<HASH> 100644 --- a/tests/test_declare.py +++ b/tests/test_declare.py @@ -51,6 +51,7 @@ class TestDeclare: def test_dependencies(self): assert_equal(user.children(primary=False), [experiment.full_table_name]) + assert_equal(...
restored a test that was accidentally removed in last commit
py
diff --git a/pandas/core/base.py b/pandas/core/base.py index <HASH>..<HASH> 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -787,7 +787,36 @@ class IndexOpsMixin(object): return not self.size def max(self): - """ The maximum value of the object """ + """ + Return the m...
DOC: Docstring for pandas.index.max (#<I>)
py
diff --git a/asammdf/blocks/utils.py b/asammdf/blocks/utils.py index <HASH>..<HASH> 100644 --- a/asammdf/blocks/utils.py +++ b/asammdf/blocks/utils.py @@ -1777,9 +1777,19 @@ def all_blocks_addresses(obj): except: pass - return [ - match.start() - for match in re.finditer(pattern,...
Added workaround for PyFilesystem objects. is_file_like==True, but need .read() to access their data
py
diff --git a/django_th/services/services.py b/django_th/services/services.py index <HASH>..<HASH> 100644 --- a/django_th/services/services.py +++ b/django_th/services/services.py @@ -203,7 +203,8 @@ class ServicesMgr(object): :rtype: string """ if kwargs.get('access_token') == '' or kwarg...
Update services.py get_access_token() have 3 positional arguments.
py
diff --git a/tensorflow_probability/python/__init__.py b/tensorflow_probability/python/__init__.py index <HASH>..<HASH> 100644 --- a/tensorflow_probability/python/__init__.py +++ b/tensorflow_probability/python/__init__.py @@ -51,7 +51,7 @@ def _validate_tf_environment(package): # # Update this whenever we need t...
Update TFP to depend on TF <I>. Parts of TFP now rely on post-<I> changes in TensorFlow. PiperOrigin-RevId: <I>
py
diff --git a/docs/sphinx_btind.py b/docs/sphinx_btind.py index <HASH>..<HASH> 100644 --- a/docs/sphinx_btind.py +++ b/docs/sphinx_btind.py @@ -29,7 +29,12 @@ from sphinx.util.docstrings import prepare_docstring from sphinx.util.nodes import nested_parse_with_titles from backtrader import Indicator, Strategy, AutoIn...
Circumvent import of talib-related things on readthedocs
py
diff --git a/message_sender/migrations/0020_outboundsendfailure_db_backed_fk_constraint.py b/message_sender/migrations/0020_outboundsendfailure_db_backed_fk_constraint.py index <HASH>..<HASH> 100644 --- a/message_sender/migrations/0020_outboundsendfailure_db_backed_fk_constraint.py +++ b/message_sender/migrations/0020_...
Don't unpack in lambda for python 3
py
diff --git a/pypeerassets/__main__.py b/pypeerassets/__main__.py index <HASH>..<HASH> 100644 --- a/pypeerassets/__main__.py +++ b/pypeerassets/__main__.py @@ -22,6 +22,7 @@ from .transactions import (nulldata_script, tx_output, p2pkh_script, Transaction, MutableTransaction) from .pa_constan...
add p2th arg in find_deck deck_parser call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -116,7 +116,7 @@ def handle_ext_modules_win_32_conda_forge_ipopt(): IPOPT_INCLUDE_DIRS = [os.path.join(conda_prefix, "Library", "include", "coin-or"), np.get_include()] - IPOPT...
Changes conda-forge windows lib name to ipopt-3 It was decided upstream to be consistent with the official IPOPT windows binaries. See: - <URL>
py
diff --git a/pytelemetry/telemetry/telemetry.py b/pytelemetry/telemetry/telemetry.py index <HASH>..<HASH> 100644 --- a/pytelemetry/telemetry/telemetry.py +++ b/pytelemetry/telemetry/telemetry.py @@ -5,6 +5,7 @@ from .framing import Delimiter from struct import pack, unpack, unpack_from from logging import getLogger ...
Fixed encoding issue on <I> bits systems
py
diff --git a/pecan/tests/test_commands.py b/pecan/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/pecan/tests/test_commands.py +++ b/pecan/tests/test_commands.py @@ -26,8 +26,11 @@ class TestCommandRunner(unittest.TestCase): def test_run(self): from pecan.commands import CommandRunner ru...
Fixing a broken test in Python <I>
py
diff --git a/skyfield/positionlib.py b/skyfield/positionlib.py index <HASH>..<HASH> 100644 --- a/skyfield/positionlib.py +++ b/skyfield/positionlib.py @@ -31,7 +31,9 @@ class ICRF(object): """An (x, y, z) position and velocity oriented to the ICRF axes. The ICRF is a permanent coordinate system that has sup...
Add a bit more explanation about ICRF and J<I>.
py
diff --git a/suds/transport/__init__.py b/suds/transport/__init__.py index <HASH>..<HASH> 100644 --- a/suds/transport/__init__.py +++ b/suds/transport/__init__.py @@ -102,7 +102,6 @@ class Transport: def __init__(self): from suds.transport.options import Options self.options = Options() - ...
code cleanup - remove unnecessary explicit variable delete The deleted variable is a local one, going out of scope in the very next line.
py
diff --git a/sportsref/nfl/teams.py b/sportsref/nfl/teams.py index <HASH>..<HASH> 100644 --- a/sportsref/nfl/teams.py +++ b/sportsref/nfl/teams.py @@ -53,9 +53,10 @@ class Team: return hash(self.teamID) @sportsref.decorators.memoized - def teamYearURL(self, yr): + def teamYearURL(self, yr_str): ...
small changes to nfl.teams.Team functions
py
diff --git a/pandas/tools/rplot.py b/pandas/tools/rplot.py index <HASH>..<HASH> 100644 --- a/pandas/tools/rplot.py +++ b/pandas/tools/rplot.py @@ -499,6 +499,8 @@ class RPlot: trellised = False def __add__(self, other): + if not isinstance(other, Layer): + raise TypeError("The operand on the right side of + m...
Make sure the user passes a Layer instance to RPlot + operator
py
diff --git a/examples/smart_listbox.py b/examples/smart_listbox.py index <HASH>..<HASH> 100644 --- a/examples/smart_listbox.py +++ b/examples/smart_listbox.py @@ -13,10 +13,10 @@ if __name__ == '__main__': string = ''.join(values) value_label.config(text=string) - # specify a callback, then speci...
Fixing comment, no change to function.
py
diff --git a/vent/menus/tools.py b/vent/menus/tools.py index <HASH>..<HASH> 100644 --- a/vent/menus/tools.py +++ b/vent/menus/tools.py @@ -54,10 +54,10 @@ class ToolForm(npyscreen.ActionForm): inventory = response[1] # TODO refactor this + # maybe above message is unnessary now ...
took out some redundant comments. clarified.
py
diff --git a/tests/basic_store.py b/tests/basic_store.py index <HASH>..<HASH> 100644 --- a/tests/basic_store.py +++ b/tests/basic_store.py @@ -212,7 +212,7 @@ class BasicStore(object): class TTLStore(object): - @pytest.fixture(params=[0.4]) + @pytest.fixture(params=[0.4, 1]) def small_ttl(self, request)...
Accept float and integer as ttl values.
py
diff --git a/source/awesome_tool/mvc/main.py b/source/awesome_tool/mvc/main.py index <HASH>..<HASH> 100755 --- a/source/awesome_tool/mvc/main.py +++ b/source/awesome_tool/mvc/main.py @@ -62,7 +62,7 @@ def main(*args, **kargs): state5.add_input_data_port("in", "int", 0) state3.add_state(state4) state3.add...
Add transition in doubles nested container state
py
diff --git a/insights/parsers/getcert_list.py b/insights/parsers/getcert_list.py index <HASH>..<HASH> 100644 --- a/insights/parsers/getcert_list.py +++ b/insights/parsers/getcert_list.py @@ -112,7 +112,7 @@ class CertList(Parser): self._data[current_request] = {} self.requests.append(c...
Ignore the trailing whitespace before endswith (#<I>)
py
diff --git a/tests/unit/states/test_file.py b/tests/unit/states/test_file.py index <HASH>..<HASH> 100644 --- a/tests/unit/states/test_file.py +++ b/tests/unit/states/test_file.py @@ -1357,14 +1357,18 @@ class TestFileState(TestCase, LoaderModuleMockMixin): with patch.object(os.path, 'exists', mock_f): ...
Update file.touch unit tests to reflect addition of changes in test mode
py
diff --git a/bcbio/rnaseq/variation.py b/bcbio/rnaseq/variation.py index <HASH>..<HASH> 100644 --- a/bcbio/rnaseq/variation.py +++ b/bcbio/rnaseq/variation.py @@ -123,7 +123,7 @@ def rnaseq_vardict_variant_calling(data): bamfile = dd.get_work_bam(data) bed_file = gtf.gtf_to_bed(dd.get_gtf_file(data)) opt...
Fix RNA-seq variant calling with VarDict.
py
diff --git a/africastalking/Payment.py b/africastalking/Payment.py index <HASH>..<HASH> 100644 --- a/africastalking/Payment.py +++ b/africastalking/Payment.py @@ -62,7 +62,8 @@ class PaymentService(Service): else: self._baseUrl += self._PRODUCTION_DOMAIN - def mobile_checkout(self, product_na...
Add channel to sdk payload
py
diff --git a/spacy/cli/link.py b/spacy/cli/link.py index <HASH>..<HASH> 100644 --- a/spacy/cli/link.py +++ b/spacy/cli/link.py @@ -4,8 +4,8 @@ from __future__ import unicode_literals import io import os import pip -import site from pathlib import Path +from distutils.sysconfig import get_python_lib from .. import ...
Use distutils.sysconfig.get_python_lib site.getsitepackages seems to not work as expected in Python 2
py
diff --git a/glue/pipeline.py b/glue/pipeline.py index <HASH>..<HASH> 100644 --- a/glue/pipeline.py +++ b/glue/pipeline.py @@ -1183,12 +1183,15 @@ class AnalysisNode(CondorDAGNode): self.__trig_end = 0 self.__ifo = None self.__ifo_tag = None - self.__user_tag = None self.__input = None self....
take the user-tag from the job
py
diff --git a/zipline/pipeline/domain.py b/zipline/pipeline/domain.py index <HASH>..<HASH> 100644 --- a/zipline/pipeline/domain.py +++ b/zipline/pipeline/domain.py @@ -156,7 +156,7 @@ class EquityCalendarDomain(Domain): data_query_offset : np.timedelta64 The offset from market open when data should no lon...
DOC: Fix out of date docstring.
py
diff --git a/twitcher/tests/test_tokens.py b/twitcher/tests/test_tokens.py index <HASH>..<HASH> 100644 --- a/twitcher/tests/test_tokens.py +++ b/twitcher/tests/test_tokens.py @@ -59,6 +59,8 @@ class AccessTokenTestCase(unittest.TestCase): assert access_token.expires_in > 0 assert access_token.expires_...
added test for acces_token.params
py
diff --git a/jaraco/classes/properties.py b/jaraco/classes/properties.py index <HASH>..<HASH> 100644 --- a/jaraco/classes/properties.py +++ b/jaraco/classes/properties.py @@ -78,6 +78,23 @@ class classproperty: ... AttributeError: can't set attribute + It is also possible to wrap a classmethod or staticm...
Cover the case of classmethod and staticmethod
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,22 @@ +import os + from setuptools import setup +with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: + README = readme.read() + +os.chdir(os.path.normpath(os.path.join(os.path.abspath(__f...
New release <I> Added rst for Pypi
py
diff --git a/_pytest/main.py b/_pytest/main.py index <HASH>..<HASH> 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -34,8 +34,8 @@ def pytest_addoption(parser): # "**/test_*.py", "**/*_test.py"] #) group = parser.getgroup("general", "running and selection options") - group._addoption(...
implement exitfirst as store_const option this makes it possible to override with a later maxfail
py
diff --git a/examples/alchemical-free-energy/alchemical_analysis.py b/examples/alchemical-free-energy/alchemical_analysis.py index <HASH>..<HASH> 100644 --- a/examples/alchemical-free-energy/alchemical_analysis.py +++ b/examples/alchemical-free-energy/alchemical_analysis.py @@ -242,7 +242,7 @@ def estimatewithMBAR(u_kl...
Changed MBAR.computeOverlap to return only O, not the entire tuple. Additionally removed argument which was causing the following error: File "/opt/alchemical-free-energy/alchemical_analysis.py", line <I>, in estimatewithMBAR O = MBAR.computeOverlap('matrix') TypeError: computeOverlap() takes exactly 1 argument (2...
py
diff --git a/pypeerassets/main.py b/pypeerassets/main.py index <HASH>..<HASH> 100644 --- a/pypeerassets/main.py +++ b/pypeerassets/main.py @@ -316,10 +316,8 @@ def card_burn(deck, card_transfer, inputs, change_address, testnet=True, prod=Tr if testnet: p2th_fee = constants.testnet_p2th_fee - netw...
card_burn: learn about network from Deck object.
py
diff --git a/src/apispec/ext/marshmallow/openapi.py b/src/apispec/ext/marshmallow/openapi.py index <HASH>..<HASH> 100644 --- a/src/apispec/ext/marshmallow/openapi.py +++ b/src/apispec/ext/marshmallow/openapi.py @@ -72,7 +72,7 @@ class OpenAPIConverter(FieldConverterMixin): # If schema is a string and is not fo...
Don't build ref in resolve_nested_schema This is done in APISpec core
py
diff --git a/allauth/account/forms.py b/allauth/account/forms.py index <HASH>..<HASH> 100644 --- a/allauth/account/forms.py +++ b/allauth/account/forms.py @@ -204,7 +204,7 @@ def _base_signup_form_class(): class BaseSignupForm(_base_signup_form_class()): username = forms.CharField(label=_("Username"), - ...
Fixed hardcoded username length for signupform
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,7 @@ from setuptools import setup requirements = [ 'numpy', 'scipy', + 'pyyaml', 'matplotlib', 'multiprocess', 'setproctitle',
Add pyyaml as dep
py
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py index <HASH>..<HASH> 100644 --- a/salt/client/ssh/__init__.py +++ b/salt/client/ssh/__init__.py @@ -935,13 +935,14 @@ ARGS = {9}\n'''.format(self.minion_config, def cmd_block(self, is_retry=False): ''' Prepare the pre-check co...
Move documentation into docstring instead of comments
py
diff --git a/benchmarks/__init__.py b/benchmarks/__init__.py index <HASH>..<HASH> 100644 --- a/benchmarks/__init__.py +++ b/benchmarks/__init__.py @@ -57,6 +57,11 @@ benchmarks = { sequence = ''.join(random.choice('ATCG' * 5 + 'N') for _i in xrange(90)), max_dist = 3, ), + 'random_kevin_partia...
yet another benchmark for Kevin Rue's use case
py
diff --git a/pyemma/coordinates/coordinate_transformation/transform/transformer.py b/pyemma/coordinates/coordinate_transformation/transform/transformer.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/coordinate_transformation/transform/transformer.py +++ b/pyemma/coordinates/coordinate_transformation/transform/...
use setter in ctor for lag and chunksize
py
diff --git a/instana/instrumentation/aiohttp/server.py b/instana/instrumentation/aiohttp/server.py index <HASH>..<HASH> 100644 --- a/instana/instrumentation/aiohttp/server.py +++ b/instana/instrumentation/aiohttp/server.py @@ -37,7 +37,13 @@ try: if custom_header in request.headers: ...
Catch valid AIOHTTP Exception responses (#<I>) so they are not input as errors
py
diff --git a/timeside/grapher/core.py b/timeside/grapher/core.py index <HASH>..<HASH> 100644 --- a/timeside/grapher/core.py +++ b/timeside/grapher/core.py @@ -23,11 +23,16 @@ # Guillaume Pellerin <yomguy@parisson.com> -import optparse, math, sys -import ImageFilter, ImageChops, Image, ImageDraw, ImageColor, Imag...
grapher: add Pillow support, thanks to Miroslav Shubernetskiy (closes: #<I>)
py
diff --git a/gandi/cli/modules/cert.py b/gandi/cli/modules/cert.py index <HASH>..<HASH> 100644 --- a/gandi/cli/modules/cert.py +++ b/gandi/cli/modules/cert.py @@ -189,6 +189,18 @@ class Certificate(GandiModule): return csr_file @classmethod + def get_common_name(cls, csr): + """ Read informati...
Add a method to retrieve CN from CSR.
py
diff --git a/appinst/file_tools.py b/appinst/file_tools.py index <HASH>..<HASH> 100644 --- a/appinst/file_tools.py +++ b/appinst/file_tools.py @@ -31,8 +31,6 @@ def fix_easy_install_script(filename, verbose=0, dryrun=False): executable_split = executable_stripped.split(os.sep) if not os.path.exists(ex...
Removed comment after talking with Dave P and deciding it would be better to deal with line-endings by setting svn properties than during the post-install.
py
diff --git a/ftr/version.py b/ftr/version.py index <HASH>..<HASH> 100644 --- a/ftr/version.py +++ b/ftr/version.py @@ -1,2 +1,2 @@ -version = '0.7.8' +version = '0.7.9'
version bump for <I>.
py
diff --git a/astrobase/checkplot.py b/astrobase/checkplot.py index <HASH>..<HASH> 100644 --- a/astrobase/checkplot.py +++ b/astrobase/checkplot.py @@ -1445,11 +1445,11 @@ def _pkl_finder_objectinfo(objectinfo, xytext=(offx, offy), arrow...
lcproc: add neighbor stuff to parallel_cp workers and driver
py
diff --git a/dhcpwn.py b/dhcpwn.py index <HASH>..<HASH> 100755 --- a/dhcpwn.py +++ b/dhcpwn.py @@ -50,6 +50,7 @@ def parse_args(): help='network interface to use') subparsers = p.add_subparsers(dest='command') + subparsers.required = True flood = subparsers.add_parser('flood') flood.add_a...
Require a subparser command Behavior changed between Python 2 and 3 on the requirement of a subparser command. Let's explicitly require it so we don't get an ugly error if it's missing. Also note that the keyword argument doesn't exist, so we have to specify it manually via the class attribute.
py
diff --git a/src/sd_plot.py b/src/sd_plot.py index <HASH>..<HASH> 100644 --- a/src/sd_plot.py +++ b/src/sd_plot.py @@ -160,10 +160,17 @@ def get_data(direc, options, column, plotman): linestring = linestring.replace('mag', '') # open data file name = linestring + options[1] - try: - content = n...
implement error if phase is selected in dc td
py
diff --git a/greg/greg.py b/greg/greg.py index <HASH>..<HASH> 100755 --- a/greg/greg.py +++ b/greg/greg.py @@ -744,7 +744,7 @@ def pretty_print(session, feed): def list_for_user(args): session = Session(args) for feed in session.list_feeds(): - print(feed, end=" ") + print(feed) print()
Each feed in its line in greg list
py
diff --git a/allauth/account/views.py b/allauth/account/views.py index <HASH>..<HASH> 100644 --- a/allauth/account/views.py +++ b/allauth/account/views.py @@ -230,7 +230,7 @@ class ConfirmEmailView(TemplateResponseMixin, View): {'email': confirmation.email_address.email}) if ...
Cleanup: return and check for None explicitly
py
diff --git a/astrobase/astrokep.py b/astrobase/astrokep.py index <HASH>..<HASH> 100644 --- a/astrobase/astrokep.py +++ b/astrobase/astrokep.py @@ -508,7 +508,7 @@ def consolidate_kepler_fitslc(keplerid, lcfitsdir, matching = glob.glob(os.path.join(lcfitsdir, '**', ...
astrokep: trying recursive glob
py
diff --git a/can/listener.py b/can/listener.py index <HASH>..<HASH> 100644 --- a/can/listener.py +++ b/can/listener.py @@ -83,6 +83,7 @@ class BufferedReader(Listener): def __init__(self): # 0 is "infinite" size self.buffer = SimpleQueue(0) + self.is_stopped = False def on_message_r...
bugfix in BufferedReader
py
diff --git a/padasip/filters/__init__.py b/padasip/filters/__init__.py index <HASH>..<HASH> 100644 --- a/padasip/filters/__init__.py +++ b/padasip/filters/__init__.py @@ -263,6 +263,7 @@ def get_filter(name): FILTER_CLASSES = [ FilterAP, + FilterGMCC, FilterGNGD, FilterLlncosh, FilterLMF, @@ -...
Added GMCC and OCNLMS to __init__
py
diff --git a/salt/states/git.py b/salt/states/git.py index <HASH>..<HASH> 100644 --- a/salt/states/git.py +++ b/salt/states/git.py @@ -23,6 +23,7 @@ import shutil # Import salt libs import salt.utils +from salt.exceptions import CommandExecutionError log = logging.getLogger(__name__) @@ -478,7 +479,12 @@ def c...
Fixes an exception that occurs when the config setting does not already exist.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -130,6 +130,7 @@ class Generate(Command): if len(argv) > 1 and argv[1] in ["bdist_wheel", "install"]: error_compiler.start() api_compiler.start() + docs_compiler.start() setup( name="Pyrogram",
Fix Telegram API missing on readthedocs
py
diff --git a/tools/run_tests/artifacts/artifact_targets.py b/tools/run_tests/artifacts/artifact_targets.py index <HASH>..<HASH> 100644 --- a/tools/run_tests/artifacts/artifact_targets.py +++ b/tools/run_tests/artifacts/artifact_targets.py @@ -387,6 +387,7 @@ def targets(): PythonArtifact('manylinux2010', 'x86'...
also build python<I> aarch<I> manylinux<I> wheel (#<I>)
py
diff --git a/src/token_auth/middleware.py b/src/token_auth/middleware.py index <HASH>..<HASH> 100755 --- a/src/token_auth/middleware.py +++ b/src/token_auth/middleware.py @@ -27,7 +27,9 @@ class ProtectedURLMiddleware(object): return False def process_request(self, request): - if not request....
fixed middleware that constantly redirected to itself!!
py
diff --git a/tangelo/tangelo/ws4py/websocket.py b/tangelo/tangelo/ws4py/websocket.py index <HASH>..<HASH> 100644 --- a/tangelo/tangelo/ws4py/websocket.py +++ b/tangelo/tangelo/ws4py/websocket.py @@ -240,6 +240,9 @@ class WebSocket(object): if self.terminated or self.sock is None: raise RuntimeErro...
Added a comment marking the change to upstream ws4py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,16 +8,18 @@ SOURCE_DIR = os.path.join(ROOT_DIR) test_requirements = [] setup( name="docker-py", - version='0.1.5', + version='0.2.0', description="Python client for Docker.", packages=['docker'], ...
Bumped version in setup.py and changed development status from alpha to beta
py
diff --git a/tests/test_s3/test_s3.py b/tests/test_s3/test_s3.py index <HASH>..<HASH> 100644 --- a/tests/test_s3/test_s3.py +++ b/tests/test_s3/test_s3.py @@ -1683,7 +1683,7 @@ def test_boto3_multipart_part_size(): parts = [] n_parts = 10 for i in range(1, n_parts + 1): - part_size = 5 * 1024 * 10...
tests: multipart: use REDUCED_PART_SIZE and variable part size There is no reason to use 5M chunks, especially with the reduced_part_size decorator. Also made part_size to be variable to add extra layer of testing to make sure that moto is handling that scenario correctly.
py
diff --git a/phy/utils/testing.py b/phy/utils/testing.py index <HASH>..<HASH> 100644 --- a/phy/utils/testing.py +++ b/phy/utils/testing.py @@ -166,7 +166,11 @@ def _profile(prof, statement, glob, loc): sys.stdout = old_stdout stats = output.getvalue() # Stop capture. - stats_file = op.join(dir, 'stats...
Save line_profiler results in lstats.txt
py
diff --git a/will/listener.py b/will/listener.py index <HASH>..<HASH> 100644 --- a/will/listener.py +++ b/will/listener.py @@ -134,7 +134,7 @@ class WillXMPPClientMixin(ClientXMPP, RosterMixin, RoomMixin, HipChatMixin): # we're in group chat and I didn't send it or (msg["type"] == "groupchat" ...
Removing trailing spaces from the message The phone clients sometimes are crazy and sends a lot of accidental <CR>s, especially when you're cold
py
diff --git a/galpy/potential/Force.py b/galpy/potential/Force.py index <HASH>..<HASH> 100644 --- a/galpy/potential/Force.py +++ b/galpy/potential/Force.py @@ -179,6 +179,18 @@ class Force(object): def __div__(self,b): return self.__mul__(1./b) __truediv__= __div__ + def __add__(self,b): + if isins...
Allow Force/Potential instances and lists thereof to be added together arithmetically
py