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 @@ -55,7 +55,7 @@ def get_current_dir(): def get_deps_reqs(): """Get dependencies from the pip requirements.txt file.""" - requirements_file = os.path.join(get_current_dir(), 'requirements.txt') + requirements_file ...
Call the requirement.txt file from the current directory, not maintainer dir.
py
diff --git a/openquake/hazardlib/geo/surface/complex_fault.py b/openquake/hazardlib/geo/surface/complex_fault.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/geo/surface/complex_fault.py +++ b/openquake/hazardlib/geo/surface/complex_fault.py @@ -78,7 +78,7 @@ class ComplexFaultSurface(BaseSurface): se...
Temporarily disabled check on complex fault surfaces
py
diff --git a/rootpy/registry.py b/rootpy/registry.py index <HASH>..<HASH> 100644 --- a/rootpy/registry.py +++ b/rootpy/registry.py @@ -31,7 +31,7 @@ class register(object): if self.names is not None: cls_names += self.names - cls_names_up = [name.upper() for name in cls_names] + ...
Fixing dupicate object registration in recent ROOT versions.
py
diff --git a/insights/client/client.py b/insights/client/client.py index <HASH>..<HASH> 100644 --- a/insights/client/client.py +++ b/insights/client/client.py @@ -579,12 +579,14 @@ def handle_startup(): updated = InsightsSchedule().set_daily() if updated: logger.info('Automatic scheduling...
Add return after cron schedule changes (#<I>)
py
diff --git a/src/fonduer/parser/preprocessors/doc_preprocessor.py b/src/fonduer/parser/preprocessors/doc_preprocessor.py index <HASH>..<HASH> 100644 --- a/src/fonduer/parser/preprocessors/doc_preprocessor.py +++ b/src/fonduer/parser/preprocessors/doc_preprocessor.py @@ -1,5 +1,6 @@ import glob import os +import sys ...
Fix the failing test by assigning sys.maxsize to max_docs as the default (#<I>)
py
diff --git a/timepiece/tests/timesheet.py b/timepiece/tests/timesheet.py index <HASH>..<HASH> 100644 --- a/timepiece/tests/timesheet.py +++ b/timepiece/tests/timesheet.py @@ -111,19 +111,21 @@ class ClockInTest(TimepieceDataTestCase): 'start_time_0': self.ten_min_ago.strftime('%m/%d/%Y'), 'sta...
testClockIn requires a slightly more exact criteria to pass
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -95,12 +95,26 @@ autoclass_content = 'both' # -- Run apidoc plug-in manually, as readthedocs doesn't support it ------- # See https://github.com/rtfd/readthedocs.org/issues/1139 def run_apidoc(_): - from ...
Update method to auto generate the apidocs Necessary for newer versions of sphinx.
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 @@ -841,13 +841,13 @@ class ModuleCase(TestCase, SaltClientTestCaseMixIn): jids.append(jid) job_data = self.r...
Let's try without passing the `--out` option.
py
diff --git a/ci/run_apex_tests.py b/ci/run_apex_tests.py index <HASH>..<HASH> 100644 --- a/ci/run_apex_tests.py +++ b/ci/run_apex_tests.py @@ -287,7 +287,7 @@ def run_tests(): 'Callout': 'Info', 'Database': 'Info', 'ExpirationDate': expiration.isoformat(), - 'ScopeId': ...
Change to ScopeId = null on the user specific TraceFlag to hopefully get beyond the limit of <I> logs
py
diff --git a/tests/test_safeoutput.py b/tests/test_safeoutput.py index <HASH>..<HASH> 100644 --- a/tests/test_safeoutput.py +++ b/tests/test_safeoutput.py @@ -103,10 +103,12 @@ def test_write_after_close(): f.write(file_data) assert expected_file(file_name, file_data) -def test_write_stdout_after_close(...
Verify what’s written to stdout from safeoutput.
py
diff --git a/salt/cloud/clouds/hetzner.py b/salt/cloud/clouds/hetzner.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/hetzner.py +++ b/salt/cloud/clouds/hetzner.py @@ -92,7 +92,7 @@ def _public_network_to_dict(net): def _private_network_to_dict(net): return { - "ipv4": getattr(net.ip, "ip", None),...
Change naming according to hetzner doc
py
diff --git a/test_pylast.py b/test_pylast.py index <HASH>..<HASH> 100755 --- a/test_pylast.py +++ b/test_pylast.py @@ -643,12 +643,14 @@ class TestPyLast(unittest.TestCase): # Arrange import pickle lastfm_user = self.network.get_user(self.username) + filename = str(self.unix_timestamp(...
Test: Use a unique filename for picking and delete it afterwards. Allows concurrent testing.
py
diff --git a/indra/databases/hgnc_client.py b/indra/databases/hgnc_client.py index <HASH>..<HASH> 100644 --- a/indra/databases/hgnc_client.py +++ b/indra/databases/hgnc_client.py @@ -334,6 +334,8 @@ def _read_hgnc_maps(): ensembl_ids = {} ensembl_ids_reverse = {} hgnc_withdrawn_new_ids = {} + # Skip t...
Fix skip header in HGNC client
py
diff --git a/examples/plot_dom_hits.py b/examples/plot_dom_hits.py index <HASH>..<HASH> 100644 --- a/examples/plot_dom_hits.py +++ b/examples/plot_dom_hits.py @@ -54,9 +54,12 @@ class DOMHits(kp.Module): dom_hits = Counter(triggered_hits.dom_id) for dom_id, n_hits in dom_hits.items(): - d...
DOC catch keyerror in dom id lookup
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,8 +10,6 @@ version = m.group(1) if m is not None else '0.0.0' def read(filename): return open(os.path.join(os.path.dirname(__file__), filename)).read() -requires = ['Jinja2', 'pytest', 'pytest-pythonpath'] - setup...
tests_requires is removed.
py
diff --git a/setup/test_integration.py b/setup/test_integration.py index <HASH>..<HASH> 100644 --- a/setup/test_integration.py +++ b/setup/test_integration.py @@ -32,16 +32,16 @@ def test_plugins(rethink): r.db_list().contains('Plugins').run(rethink) def test_brain_targets(rethink): - r.db("Brain").contains(...
changed .contains changed database query functions
py
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/riskmodels.py +++ b/openquake/risklib/riskmodels.py @@ -754,6 +754,10 @@ class CompositeRiskModel(collections.abc.Mapping): return dic def get_rwdics(self, taxidx): + ...
Added a docstring [ci skip]
py
diff --git a/assess_autoload_credentials.py b/assess_autoload_credentials.py index <HASH>..<HASH> 100755 --- a/assess_autoload_credentials.py +++ b/assess_autoload_credentials.py @@ -108,7 +108,8 @@ def run_autoload_credentials(client, envvars): process.expect(pexpect.EOF) if process.isalive(): - pri...
Ensure process is terminated if needed.
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -4425,23 +4425,23 @@ def expr_items(expr): expression 'expr'. """ - deps = set() + res = set() def rec(subexpr): - if not isinstance(subexpr, tuple): - # Symbol or...
Simplify expr_items() Same cleanup as for _make_depend_on(). Rename 'deps' to 'res' as well. The result can be used for other stuff besides figuring out dependencies.
py
diff --git a/bsdploy/fabfile_mfsbsd.py b/bsdploy/fabfile_mfsbsd.py index <HASH>..<HASH> 100644 --- a/bsdploy/fabfile_mfsbsd.py +++ b/bsdploy/fabfile_mfsbsd.py @@ -101,7 +101,11 @@ def _bootstrap(): devices_args=devices_args, system_pool_name=system_pool_name, data_pool_name=data_pool_name)) -...
primitive http proxy support for zfsinstall during bootstrap
py
diff --git a/bootstrap_env.py b/bootstrap_env.py index <HASH>..<HASH> 100755 --- a/bootstrap_env.py +++ b/bootstrap_env.py @@ -152,4 +152,3 @@ def main(): if __name__ == '__main__': main() -
fix blank line EOF on bootstrap script
py
diff --git a/nplusone/ext/django.py b/nplusone/ext/django.py index <HASH>..<HASH> 100644 --- a/nplusone/ext/django.py +++ b/nplusone/ext/django.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import copy import logging import functools @@ -12,14 +13,15 @@ def signalify_queryset(func, parser=None, **context): @f...
Don't mutate context across decorated functions.
py
diff --git a/build_swagger_spec.py b/build_swagger_spec.py index <HASH>..<HASH> 100644 --- a/build_swagger_spec.py +++ b/build_swagger_spec.py @@ -19,7 +19,7 @@ parser.add_argument('--version', default=None, help='Specify a spec version') args = parser.parse_args() def run(): - app = pkg_resources.EntryPoint.par...
Replace deprecated load() with resolve()
py
diff --git a/src/feat/bin/host.py b/src/feat/bin/host.py index <HASH>..<HASH> 100755 --- a/src/feat/bin/host.py +++ b/src/feat/bin/host.py @@ -6,5 +6,5 @@ from feat import everything if __name__ == '__main__': with run.bootstrap() as agency: conn = run.get_db_connection(agency) - d = conn.save_doc...
Fix import, host_agent is now imported in everything
py
diff --git a/httpretty/core.py b/httpretty/core.py index <HASH>..<HASH> 100644 --- a/httpretty/core.py +++ b/httpretty/core.py @@ -482,7 +482,8 @@ class fakesock(object): self.truesock = self.create_socket() elif not self.truesock: raise UnmockedError() - with r...
prevent exception from re-applying monkey patches. closes #<I>
py
diff --git a/Lib/fontbakery/profiles/googlefonts.py b/Lib/fontbakery/profiles/googlefonts.py index <HASH>..<HASH> 100644 --- a/Lib/fontbakery/profiles/googlefonts.py +++ b/Lib/fontbakery/profiles/googlefonts.py @@ -5354,6 +5354,7 @@ def com_google_fonts_check_stylisticset_description(ttFont): """, conditions ...
annotate check priority for check/use_typo_metrics based on @vv-monsalve suggestion at issue #<I>
py
diff --git a/eventsourcing/infrastructure/transcoding.py b/eventsourcing/infrastructure/transcoding.py index <HASH>..<HASH> 100644 --- a/eventsourcing/infrastructure/transcoding.py +++ b/eventsourcing/infrastructure/transcoding.py @@ -28,14 +28,14 @@ class StoredEventTranscoder(six.with_metaclass(ABCMeta)): def de...
Added a todo, to remember to reimplement object class transcoding.
py
diff --git a/ipyrad/core/assembly.py b/ipyrad/core/assembly.py index <HASH>..<HASH> 100644 --- a/ipyrad/core/assembly.py +++ b/ipyrad/core/assembly.py @@ -566,6 +566,11 @@ class Assembly(object): """ Creates self.populations dictionary to save mappings of individuals to populations/sites, and...
If the user removes the population assignment file blank out the data.populations dictionary.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup setup( name='python-events',
Move to setup from setuptools to support wheel
py
diff --git a/tools/source_tree/deploy_pip.py b/tools/source_tree/deploy_pip.py index <HASH>..<HASH> 100644 --- a/tools/source_tree/deploy_pip.py +++ b/tools/source_tree/deploy_pip.py @@ -2,9 +2,7 @@ Currently, pip package deployment is supported through the DEPLOY_PIP function. """ -import configparser import cont...
tools/source_tree: Remove unused imports. Signed-off-by: format <I> <github.com/ChrisCummins/format>
py
diff --git a/salt/modules/launchctl.py b/salt/modules/launchctl.py index <HASH>..<HASH> 100644 --- a/salt/modules/launchctl.py +++ b/salt/modules/launchctl.py @@ -79,7 +79,7 @@ def start(job_label, runas=None): ''' cmd = 'launchctl start {0}'.format(job_label, runas=runas) - return __salt__['cmd.run'](cm...
There is no user 'marca' in default OSX installation Launchctl is unable to start services if used with unexistent user marca
py
diff --git a/packages/vaex-core/vaex/test/dataset.py b/packages/vaex-core/vaex/test/dataset.py index <HASH>..<HASH> 100644 --- a/packages/vaex-core/vaex/test/dataset.py +++ b/packages/vaex-core/vaex/test/dataset.py @@ -21,12 +21,15 @@ basedir = os.path.dirname(__file__) @contextlib.contextmanager def small_buffer(d...
test: do not change buffer size for remote datasets (not supported)
py
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index <HASH>..<HASH> 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -140,8 +140,8 @@ def read_frame(sql, con, index_col=None, coerce_float=True): index_col: string, optional column name to use for the returned DataFrame object. coerce_float : ...
adjusted the indentation of doc of io.sql.read_frame
py
diff --git a/geomet/wkb.py b/geomet/wkb.py index <HASH>..<HASH> 100644 --- a/geomet/wkb.py +++ b/geomet/wkb.py @@ -197,7 +197,7 @@ def __unsupported_geom_type(geom_type): def __dump_point(obj, big_endian): """ - Dump a GeoJSON-like `dict` to a WKB string. + Dump a GeoJSON-like `dict` to a point WKB string...
wkb: Clarified some docstrings.
py
diff --git a/salt/utils/datafreeze.py b/salt/utils/datafreeze.py index <HASH>..<HASH> 100644 --- a/salt/utils/datafreeze.py +++ b/salt/utils/datafreeze.py @@ -53,6 +53,9 @@ class ImmutableList(collections.Sequence): def __iter__(self): return iter(self.__obj) + def __add__(self, other): + retu...
Collections can be `__add__`'ed
py
diff --git a/project_generator/project.py b/project_generator/project.py index <HASH>..<HASH> 100644 --- a/project_generator/project.py +++ b/project_generator/project.py @@ -207,6 +207,7 @@ class Project: try: f = open(project_file, 'rt') project_file_data = yaml.load(f) ...
project - fix set_attributes which was removed in the latest PR
py
diff --git a/scraper/code_gov/__init__.py b/scraper/code_gov/__init__.py index <HASH>..<HASH> 100644 --- a/scraper/code_gov/__init__.py +++ b/scraper/code_gov/__init__.py @@ -46,7 +46,7 @@ def process_config(config, compute_labor_hours=True): code_gov_metadata['releases'].append(code_gov_project) # ...
Fixed GitLab object name expected in config file
py
diff --git a/validator/sawtooth_validator/journal/back_pressure_handlers.py b/validator/sawtooth_validator/journal/back_pressure_handlers.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/journal/back_pressure_handlers.py +++ b/validator/sawtooth_validator/journal/back_pressure_handlers.py @@ -35,8 +35,...
Replace whitelist with allowlist This change replaces the use of whitelist with allowlist where appropriate.
py
diff --git a/safe_qgis/dock.py b/safe_qgis/dock.py index <HASH>..<HASH> 100644 --- a/safe_qgis/dock.py +++ b/safe_qgis/dock.py @@ -3134,7 +3134,8 @@ class Dock(QtGui.QDockWidget, Ui_DockBase): mySuggestion = self.tr('Try zooming in to a smaller area or using' ' a raster ...
Also added note about adding more ram to computer
py
diff --git a/pdf2image/pdf2image.py b/pdf2image/pdf2image.py index <HASH>..<HASH> 100644 --- a/pdf2image/pdf2image.py +++ b/pdf2image/pdf2image.py @@ -9,6 +9,7 @@ import re import tempfile import types import shutil +import pathlib from subprocess import Popen, PIPE from PIL import Image @@ -64,6 +65,16 @@ def c...
Add recognition of pathlike objects as arguments
py
diff --git a/cbamf/test/nbody.py b/cbamf/test/nbody.py index <HASH>..<HASH> 100644 --- a/cbamf/test/nbody.py +++ b/cbamf/test/nbody.py @@ -125,7 +125,7 @@ class BrownianHardSphereSimulation(object): mask = np.ones_like(self.rad).astype('bool') for step in xrange(steps): - self.forces ...
masking in force calculation as well for speed
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,10 +39,8 @@ except ImportError: USE_SETUPTOOLS = 0 # pylint needs to filter some test files expected to be wrong -P3K_FILES_TO_IGNORE= ['test/input/func_wrong_encoding.py', - 'test/input/func_n...
py3k packaging: remove removed files from P3K_FILES_TO_IGNORE
py
diff --git a/pylint/checkers/__init__.py b/pylint/checkers/__init__.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/__init__.py +++ b/pylint/checkers/__init__.py @@ -51,10 +51,8 @@ def table_lines_from_stats(stats, _, columns): lines = [] for m_type in columns: new = stats[m_type] - forma...
Fix - Remove the redefined build-in instead of using a pragma
py
diff --git a/airflow/www/views.py b/airflow/www/views.py index <HASH>..<HASH> 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2889,7 +2889,7 @@ class Airflow(AirflowBaseView): task_dict['end_date'] = task_dict['end_date'] or timezone.utcnow() task_dict['extraLinks'] = dag.get_...
Fix log link in gantt view (#<I>)
py
diff --git a/astropy_helpers/test_helpers.py b/astropy_helpers/test_helpers.py index <HASH>..<HASH> 100644 --- a/astropy_helpers/test_helpers.py +++ b/astropy_helpers/test_helpers.py @@ -1,6 +1,7 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) +import ...
Add silly missing import (something about all this feels oddly familiar--like I already did this a few weeks ago...)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ setuptools.setup( packages=setuptools.find_packages(), scripts=glob.glob('scripts/*'), url='https://github.com/GoogleCloudPlatform/compute-image-packages', - version='2.3.2', + version='2.3....
Version bump the Google Python package to <I>. (#<I>)
py
diff --git a/hwt/synthesizer/interface.py b/hwt/synthesizer/interface.py index <HASH>..<HASH> 100644 --- a/hwt/synthesizer/interface.py +++ b/hwt/synthesizer/interface.py @@ -112,6 +112,7 @@ class Interface(InterfaceBase, InterfaceceImplDependentFns, """ :attention: it is not call of function it is op...
early error on wrong direction interface connection #<I>
py
diff --git a/photutils/psf/epsf.py b/photutils/psf/epsf.py index <HASH>..<HASH> 100644 --- a/photutils/psf/epsf.py +++ b/photutils/psf/epsf.py @@ -554,7 +554,8 @@ class EPSFBuilder(object): A 3D cube containing the resampled residual images. """ - star_imgs = np.zeros((stars.n_good_stars,...
Remove unpacking inside tuple for python < <I>
py
diff --git a/src/stable/components/refereeViewer/refereeViewer.py b/src/stable/components/refereeViewer/refereeViewer.py index <HASH>..<HASH> 100755 --- a/src/stable/components/refereeViewer/refereeViewer.py +++ b/src/stable/components/refereeViewer/refereeViewer.py @@ -24,7 +24,7 @@ class Pose: self.dist=0 self....
Issue #<I>: Removed double assignment.
py
diff --git a/stdeb/py2dsc.py b/stdeb/py2dsc.py index <HASH>..<HASH> 100644 --- a/stdeb/py2dsc.py +++ b/stdeb/py2dsc.py @@ -67,9 +67,13 @@ def runit(): print >> sys.stderr, "Package %s not found, trying PyPi ." % sdist_file, package = Requirement.parse(sdist_file) print >> sys.stderr,".", - ...
First check if we got any package back from PyPi, then try to use it. git-svn-id: <URL>
py
diff --git a/bcbio/rnaseq/qc.py b/bcbio/rnaseq/qc.py index <HASH>..<HASH> 100644 --- a/bcbio/rnaseq/qc.py +++ b/bcbio/rnaseq/qc.py @@ -5,13 +5,14 @@ import csv import os import pandas as pd import statsmodels.formula.api as sm +from random import shuffle +from itertools import ifilter from bcbio import bam from ...
Shuffle the output from samples before iterating over it. This way the complexity metric is not skewed by stacks of the same read in a sorted BAM file.
py
diff --git a/note/mongo_driver.py b/note/mongo_driver.py index <HASH>..<HASH> 100644 --- a/note/mongo_driver.py +++ b/note/mongo_driver.py @@ -1,7 +1,6 @@ from db_api import dbBaseClass import pymongo import time -import sys import os import subprocess as SP @@ -177,8 +176,7 @@ class mongoDB(dbBaseClass): ...
small improvements to mongo_driver
py
diff --git a/furious/context/_local.py b/furious/context/_local.py index <HASH>..<HASH> 100644 --- a/furious/context/_local.py +++ b/furious/context/_local.py @@ -52,16 +52,12 @@ def _init(): NOTE: Do not directly run this method. """ - global _local_context - # If there is a context and it is initi...
Correct bug with instantiating _local_context as a thread.local. _local_context is initialized within the init context method. This is causing the thread local to be incorrectly initialized and consequently get corrupted.
py
diff --git a/purplex/parse.py b/purplex/parse.py index <HASH>..<HASH> 100644 --- a/purplex/parse.py +++ b/purplex/parse.py @@ -61,6 +61,7 @@ class Parser(metaclass=ParserBase): def __init__(self, start=None, debug=False): self._parser = self._build(start, debug) + self._lexer = None def _b...
Parser instances now have a reference their lexer instance (self.lexer)
py
diff --git a/noisyopt/main.py b/noisyopt/main.py index <HASH>..<HASH> 100644 --- a/noisyopt/main.py +++ b/noisyopt/main.py @@ -69,6 +69,10 @@ def minimizeCompass(func, x0, args=(), over the stochasticity in the function evaluation. The number of evaluations over which to average is adapted dynamically to ensu...
added minimizeCompass termination criterion to docstring
py
diff --git a/MySQLdb/tests/test_MySQLdb_capabilities.py b/MySQLdb/tests/test_MySQLdb_capabilities.py index <HASH>..<HASH> 100644 --- a/MySQLdb/tests/test_MySQLdb_capabilities.py +++ b/MySQLdb/tests/test_MySQLdb_capabilities.py @@ -79,7 +79,10 @@ class test_MySQLdb(capabilities.DatabaseTest): self.cursor.ex...
Add a test for connection.ping()
py
diff --git a/middleware.py b/middleware.py index <HASH>..<HASH> 100644 --- a/middleware.py +++ b/middleware.py @@ -40,7 +40,9 @@ class LoginRequiredMiddleware: # Jump over this middleware if not a protected url. path = request.path_info.lstrip('/') - if any(m.match(path) for m in EXEMPT_URLS)...
Try to add some readability to the middleware
py
diff --git a/src/python/dxpy/packages/requests/adapters.py b/src/python/dxpy/packages/requests/adapters.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/packages/requests/adapters.py +++ b/src/python/dxpy/packages/requests/adapters.py @@ -194,7 +194,16 @@ class HTTPAdapter(BaseAdapter): if proxy: ...
[PTFM-<I>] Patch vendored requests to inject Proxy-Authorization header appropriately
py
diff --git a/tohu/custom_generator_NEW.py b/tohu/custom_generator_NEW.py index <HASH>..<HASH> 100644 --- a/tohu/custom_generator_NEW.py +++ b/tohu/custom_generator_NEW.py @@ -235,6 +235,22 @@ def _add_new_reset_method(cls): cls.reset = new_reset_method +def _add_new_spawn_method(cls): + """ + TODO + "...
Add spawn() method to custom generator.
py
diff --git a/src/python/twitter/common/python/translator.py b/src/python/twitter/common/python/translator.py index <HASH>..<HASH> 100644 --- a/src/python/twitter/common/python/translator.py +++ b/src/python/twitter/common/python/translator.py @@ -177,5 +177,5 @@ class Translator(object): whl_translator = WheelTr...
When translating a source package, translate it to the requested platform, not the current platform. (sapling split of 9da<I>aa6a6c<I>c<I>a<I>f8c<I>b3c6d<I>eb6ad<I>)
py
diff --git a/ftpsync/util.py b/ftpsync/util.py index <HASH>..<HASH> 100644 --- a/ftpsync/util.py +++ b/ftpsync/util.py @@ -157,7 +157,11 @@ except ImportError: DEFAULT_CREDENTIAL_STORE = "pyftpsync.pw" DRY_RUN_PREFIX = "(DRY-RUN) " -IS_REDIRECTED = os.fstat(0) != os.fstat(1) +# Compatible with pyinstaller --windowe...
Compatible with pyinstaller --windowed mode (#<I>) * Compatible with pyinstaller --windowed mode * Add comment
py
diff --git a/ibei/uibei.py b/ibei/uibei.py index <HASH>..<HASH> 100644 --- a/ibei/uibei.py +++ b/ibei/uibei.py @@ -45,7 +45,10 @@ def uibei(order, energy_lo, temp, chem_potential): prefactor = (2 * np.pi * np.math.factorial(order) * kT**(order + 1)) / \ (constants.h**3 * constants.c**2) - if reduced_...
Test for condition of issue #<I> and continue Specifically, the condition is that `energy_lo == 0` AND `chem_potential == 0`. If this condition is met, continue with the upper incomplete Bose-Einstein calculation as opposed to returning a value of zero as before.
py
diff --git a/plenum/common/constants.py b/plenum/common/constants.py index <HASH>..<HASH> 100644 --- a/plenum/common/constants.py +++ b/plenum/common/constants.py @@ -100,7 +100,6 @@ VERIFIABLE_ATTRIBUTES = 'verifiableAttributes' PREDICATES = 'predicates' TXN_TIME = 'txnTime' TXN_DATA = "txnData" -KEY = "key" LAST_...
INDY-<I>: Refactoring
py
diff --git a/spinoff/actor/_actor.py b/spinoff/actor/_actor.py index <HASH>..<HASH> 100644 --- a/spinoff/actor/_actor.py +++ b/spinoff/actor/_actor.py @@ -570,7 +570,7 @@ class Node(object): self.hub = hub def lookup(self, uri_or_addr): - if not (uri_or_addr and isinstance(uri_or_addr, (Uri, ...
Fixed Node.lookup to support looking up the root actor
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -39,6 +39,8 @@ MOCK_MODULES = [ 'colormath.color_objects', 'colormath.color_conversions', 'fuzzywuzzy', + 'fuzzywuzzy.process', + 'fuzzywuzzy.fuzz', ] sys.modules.update((mod_name, Mock()...
Mocking away even more imports
py
diff --git a/hnmp.py b/hnmp.py index <HASH>..<HASH> 100644 --- a/hnmp.py +++ b/hnmp.py @@ -151,7 +151,9 @@ class SNMP(object): self.privkey = privkey def _get_snmp_security(self): - if self.version == 3: + if self.version == 1: + return cmdgen.CommunityData(self.community, mpMod...
add support for SNMPv1 closes #9
py
diff --git a/jishaku/repl/disassembly.py b/jishaku/repl/disassembly.py index <HASH>..<HASH> 100644 --- a/jishaku/repl/disassembly.py +++ b/jishaku/repl/disassembly.py @@ -59,7 +59,21 @@ def wrap_code(code: str, args: str = '') -> ast.Module: # We do not use the keyword transformer here, since it might produce mi...
Allow implicit return (but not yield) in disassembly for ease of use
py
diff --git a/afkak/kafkacodec.py b/afkak/kafkacodec.py index <HASH>..<HASH> 100644 --- a/afkak/kafkacodec.py +++ b/afkak/kafkacodec.py @@ -2,7 +2,7 @@ # Copyright (C) 2015 Cyan, Inc. # Copyright 2017, 2018 Ciena Corporation -from __future__ import absolute_import, generator_stop +from __future__ import absolute_imp...
Remove future import It doesn't work on old Python, of course...
py
diff --git a/python/ray/data/tests/test_raydp_dataset.py b/python/ray/data/tests/test_raydp_dataset.py index <HASH>..<HASH> 100644 --- a/python/ray/data/tests/test_raydp_dataset.py +++ b/python/ray/data/tests/test_raydp_dataset.py @@ -1,3 +1,8 @@ +# Skipping entire test module: +# - Waiting for MLDataset to be made an...
[CI] [Datasets] [RayDP] Skip failing RayDP integration tests. (#<I>) Current causing the master Datasets CI job to fail due to a hard dependency on MLDataset, which has been deleted in Ray master. See #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -54,6 +54,7 @@ setup( 'docopt >= 0.6.2', 'tabulate >= 0.7.7', 'matplotlib >= 2.0.0', + 'sympy >= 1.1', ], # versioneer version=versioneer.get_version(),
fix: add missing sympy dependency
py
diff --git a/bokeh/objects.py b/bokeh/objects.py index <HASH>..<HASH> 100644 --- a/bokeh/objects.py +++ b/bokeh/objects.py @@ -184,12 +184,13 @@ class PandasDataSource(DataSource): data = Dict() +class Range1d(PlotObject): + start = Float() + end = Float() -class DataRange1d(PlotObject): +class Dat...
Adding Range1d class to objects.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ setup(name='django-contact', description='System for working with contacts/identities in django.', long_description=meta_files['README.md'], - version='0.1.1', + version='0.1.2', ...
Bump due to incompetence.
py
diff --git a/tests/test_proxies.py b/tests/test_proxies.py index <HASH>..<HASH> 100644 --- a/tests/test_proxies.py +++ b/tests/test_proxies.py @@ -419,7 +419,7 @@ def s6lduD7BJpxW(): @too_many def bUICVObtDZ4I(): - """Declarative Injected with nesting layer.""" + """Declarative Injected with nested layer.""" ...
Add let notation examples to test.
py
diff --git a/OpenPNM/Base/__Controller__.py b/OpenPNM/Base/__Controller__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Controller__.py +++ b/OpenPNM/Base/__Controller__.py @@ -341,6 +341,44 @@ class Controller(dict): comments = property(fget=_get_comments,fset=_set_comments) + def subset(self,pores):...
subset works, but is incomplete...there is no way to map between parent and subnet
py
diff --git a/eppy/geometry/volume_zone.py b/eppy/geometry/volume_zone.py index <HASH>..<HASH> 100644 --- a/eppy/geometry/volume_zone.py +++ b/eppy/geometry/volume_zone.py @@ -37,13 +37,13 @@ def vol_tehrahedron(poly): b = np.array(poly[1]) c = np.array(poly[2]) d = np.array(poly[3]) - return abs(dot((...
Replaced division operators with explicit numpy functions in prep for switching to tinynumpy
py
diff --git a/openquake/server/tests/views_test.py b/openquake/server/tests/views_test.py index <HASH>..<HASH> 100644 --- a/openquake/server/tests/views_test.py +++ b/openquake/server/tests/views_test.py @@ -115,10 +115,6 @@ class EngineServerTestCase(unittest.TestCase): @classmethod def setUpClass(cls): - ...
Tried to manage the TimeoutError in the server tests [skip CI]
py
diff --git a/alerta/models/alert.py b/alerta/models/alert.py index <HASH>..<HASH> 100644 --- a/alerta/models/alert.py +++ b/alerta/models/alert.py @@ -357,7 +357,7 @@ class Alert: # set alert status def set_status(self, status, text='', timeout=None): - self.timeout = timeout or current_app.config['A...
Fix setting timeout=None incorrectly through API (#<I>)
py
diff --git a/tests/test_bukuDb.py b/tests/test_bukuDb.py index <HASH>..<HASH> 100644 --- a/tests/test_bukuDb.py +++ b/tests/test_bukuDb.py @@ -936,16 +936,14 @@ def test_delete_rec_on_non_interger(index, low, high, is_range): for bookmark in TEST_BOOKMARKS: bdb.add_rec(*bookmark) - db_len = len(TEST_...
fix: test: delete_rec
py
diff --git a/dhooks/__init__.py b/dhooks/__init__.py index <HASH>..<HASH> 100644 --- a/dhooks/__init__.py +++ b/dhooks/__init__.py @@ -5,4 +5,4 @@ from .embed import Embed __title__ = 'dhooks' __author__ = 'kyb3r' __license__ = 'MIT' -__version__ = '1.1.1' +__version__ = '1.1.3'
Version bump to <I> Actually the version is <I> but the current version is as <I>
py
diff --git a/grimoire_elk/elk/stackexchange.py b/grimoire_elk/elk/stackexchange.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/stackexchange.py +++ b/grimoire_elk/elk/stackexchange.py @@ -142,6 +142,7 @@ class StackExchangeEnrich(Enrich): map_fields = {"title": "question_title"} for fn ...
[enrich][stackexchange] Include title_analyzed field
py
diff --git a/spyder/plugins/pylint/widgets/pylintgui.py b/spyder/plugins/pylint/widgets/pylintgui.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/pylint/widgets/pylintgui.py +++ b/spyder/plugins/pylint/widgets/pylintgui.py @@ -267,7 +267,7 @@ class PylintWidget(QWidget): def set_filename(self, filename): ...
Code Analysis: Normalize file paths for correct handling of filenames on Windows
py
diff --git a/tests/support/jinja_filters.py b/tests/support/jinja_filters.py index <HASH>..<HASH> 100644 --- a/tests/support/jinja_filters.py +++ b/tests/support/jinja_filters.py @@ -602,12 +602,10 @@ class JinjaFiltersTest(object): ''' test jinja filter path.which ''' - _expected = {'...
Fixing test_path_which to check that the filter is available rather than results.
py
diff --git a/py/conftest.py b/py/conftest.py index <HASH>..<HASH> 100644 --- a/py/conftest.py +++ b/py/conftest.py @@ -45,6 +45,7 @@ drivers = ( 'Safari', 'WebKitGTK', 'ChromiumEdge', + 'WPEWebKit', ) @@ -120,6 +121,8 @@ def driver(request): options = get_options(driver_class, reques...
[py] Allow using WPEWebKit to run the pytest suite
py
diff --git a/claripy/frontends/replacement_frontend.py b/claripy/frontends/replacement_frontend.py index <HASH>..<HASH> 100644 --- a/claripy/frontends/replacement_frontend.py +++ b/claripy/frontends/replacement_frontend.py @@ -33,7 +33,6 @@ class ReplacementFrontend(ConstrainedFrontend): if invalidate_cache: ...
don't needlessly branch the ReplacerFrontend's actual frontend
py
diff --git a/git_repo/services/ext/github.py b/git_repo/services/ext/github.py index <HASH>..<HASH> 100644 --- a/git_repo/services/ext/github.py +++ b/git_repo/services/ext/github.py @@ -198,11 +198,11 @@ class GithubService(RepositoryService): import platform gh = github3.GitHub() gh.login(l...
🚒 Fixed typo in 2FA code
py
diff --git a/hydra_base/db/__init__.py b/hydra_base/db/__init__.py index <HASH>..<HASH> 100644 --- a/hydra_base/db/__init__.py +++ b/hydra_base/db/__init__.py @@ -97,7 +97,13 @@ def connect(db_url=None): db_url = create_mysql_db(db_url) global engine - engine = create_engine(db_url, encoding='utf8') + + ...
Make the pool_size and max_overflow settings of the DB connection configurable in hydra.ini
py
diff --git a/aegea/ssh.py b/aegea/ssh.py index <HASH>..<HASH> 100644 --- a/aegea/ssh.py +++ b/aegea/ssh.py @@ -15,14 +15,13 @@ MITM vulnerability. import os, sys, argparse, subprocess from . import register_parser -from .util.aws import resolve_instance_id +from .util.aws import resolve_instance_id, resources from...
Attempt to work around autoloader import issue seen on <I>
py
diff --git a/digsandpaper/coarse/generate/query_compiler_component.py b/digsandpaper/coarse/generate/query_compiler_component.py index <HASH>..<HASH> 100644 --- a/digsandpaper/coarse/generate/query_compiler_component.py +++ b/digsandpaper/coarse/generate/query_compiler_component.py @@ -646,7 +646,8 @@ class Elasticsear...
facets with ids queries
py
diff --git a/cartoframes/io/managers/context_manager.py b/cartoframes/io/managers/context_manager.py index <HASH>..<HASH> 100644 --- a/cartoframes/io/managers/context_manager.py +++ b/cartoframes/io/managers/context_manager.py @@ -443,7 +443,7 @@ def _create_auth_client(credentials, public=False): def _compute_cop...
Change iterrows method for index attribute in row data generation
py
diff --git a/openstack_dashboard/test/helpers.py b/openstack_dashboard/test/helpers.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/test/helpers.py +++ b/openstack_dashboard/test/helpers.py @@ -279,7 +279,10 @@ class TestCase(horizon_helpers.TestCase): Asserts that the given response issued a 302 redi...
Support Django <I> support (1) Django <I> defines the new header API for the response object [1]. This change dropped "_headers" attribute from the response object. Instead of accesing a private attribute, we need to use the public APIs for response headers [2]. [1] <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,9 +6,7 @@ import sys from incoming import __version__ from setuptools import setup, find_packages -install_requires = [] -if sys.version_info <= (2, 6): - install_requires.append('simplejson') +install_requires = ['p...
add pytest as a requirement
py
diff --git a/imgaug/augmenters/size.py b/imgaug/augmenters/size.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/size.py +++ b/imgaug/augmenters/size.py @@ -1439,8 +1439,8 @@ class CropToFixedSize(Augmenter): keypoints_on_image = keypoints_on_images[i] ih, iw = keypoints_on_image.shape[:...
Fix off by one error in CropToFixedSize
py
diff --git a/alerta/app/__init__.py b/alerta/app/__init__.py index <HASH>..<HASH> 100644 --- a/alerta/app/__init__.py +++ b/alerta/app/__init__.py @@ -14,6 +14,9 @@ app.config.from_object('alerta.settings') app.config.from_pyfile('/etc/alertad.conf', silent=True) app.config.from_envvar('ALERTA_SVR_CONF_FILE', silent=...
Add BASE_URL as env var setting
py
diff --git a/salt/modules/mdadm.py b/salt/modules/mdadm.py index <HASH>..<HASH> 100644 --- a/salt/modules/mdadm.py +++ b/salt/modules/mdadm.py @@ -258,7 +258,7 @@ def save_config(): cfg_file = '/etc/mdadm.conf' try: - vol_d = {line.split()[1]: line for line in scan} + vol_d = dict([(line.s...
Removed dict comprehension for python <I> compat Boy it sure would be nice if we didn't have to keep compatibility with python versions from 5 years ago :)
py
diff --git a/sshagent/trezor.py b/sshagent/trezor.py index <HASH>..<HASH> 100644 --- a/sshagent/trezor.py +++ b/sshagent/trezor.py @@ -102,12 +102,16 @@ class Client(object): hidden = os.urandom(64) identity = self.get_identity(identity) - node = self.client.get_public_node(_get_address(ident...
trezor: show BTC address on device
py
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/main.py +++ b/bcbio/pipeline/main.py @@ -384,7 +384,7 @@ class RnaseqPipeline(AbstractPipeline): @classmethod def run(self, config, config_file, parallel, dirs, samples): - with prun.start(_w...
Add AlienTrimmer to the resource requirements for trimming.
py
diff --git a/salt/modules/eselect.py b/salt/modules/eselect.py index <HASH>..<HASH> 100644 --- a/salt/modules/eselect.py +++ b/salt/modules/eselect.py @@ -3,9 +3,12 @@ Support for eselect, Gentoo's configuration and management tool. ''' +import logging + # Import salt libs import salt.utils +log = logging.getLo...
Don't try to run blindly non-existent modules.
py
diff --git a/codespell_lib/_codespell.py b/codespell_lib/_codespell.py index <HASH>..<HASH> 100755 --- a/codespell_lib/_codespell.py +++ b/codespell_lib/_codespell.py @@ -51,11 +51,11 @@ _builtin_dictionaries = ( False, None, supported_languages_en, None), ('rare', 'for rare but valid words', '_rare', ...
Try and improve dictionary descriptions (#<I>) * Try and improve dictionary descriptions * Fix the line length warning
py
diff --git a/mackup.py b/mackup.py index <HASH>..<HASH> 100755 --- a/mackup.py +++ b/mackup.py @@ -44,7 +44,8 @@ SUPPORTED_APPS = { 'Bash': ['.bash_aliases', '.bash_logout', '.bashrc', - '.profile'], + '.profile', + '.inputrc'], 'Boto': ['.boto...
Added support for .inputrc
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( author_email='holden@pigscanfly.ca', packages=['sparklingpandas', 'sparklingpandas.test'], url='https://github.com/holdenk/PandaSpark', - license='LICENSE.t xt', + license='LICENSE.txt...
added text_max to groupytests
py