diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/unit/modules/test_junos.py b/tests/unit/modules/test_junos.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_junos.py
+++ b/tests/unit/modules/test_junos.py
@@ -21,7 +21,7 @@ try:
from jnpr.junos.utils.sw import SW
from jnpr.junos.device import Device
from jnpr.junos.device ... | Quiet the linter We need this import to determine whether we have the needed modules to run the test, even though it is not invoked directly. | py |
diff --git a/PBB_Core.py b/PBB_Core.py
index <HASH>..<HASH> 100755
--- a/PBB_Core.py
+++ b/PBB_Core.py
@@ -585,8 +585,12 @@ class WDItemEngine(object):
names = [x.lower() for x in names]
+ count = 0
+ if len(claim_values) - data_match_count > 0:
+ count = round((len(claim_values) -... | improved estimation in __integrity_check() | py |
diff --git a/mpdlcd/mpdwrapper.py b/mpdlcd/mpdwrapper.py
index <HASH>..<HASH> 100644
--- a/mpdlcd/mpdwrapper.py
+++ b/mpdlcd/mpdwrapper.py
@@ -111,9 +111,18 @@ class MPDClient(utils.AutoRetryCandidate):
class MPDSong(object):
+ DEFAULTS = {
+ 'artist': u"<Unknown>",
+ 'title': u"<Unknown>",
+ ... | Don't crash on empty artist/title fields. | py |
diff --git a/tensor2tensor/utils/registry.py b/tensor2tensor/utils/registry.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/registry.py
+++ b/tensor2tensor/utils/registry.py
@@ -493,19 +493,24 @@ list_problems = list_base_problems
register_problem = register_base_problem
-def problem(problem_name):
- """... | Search in base and env registries to create a problem. PiperOrigin-RevId: <I> | py |
diff --git a/signalfx/version.py b/signalfx/version.py
index <HASH>..<HASH> 100644
--- a/signalfx/version.py
+++ b/signalfx/version.py
@@ -1,4 +1,4 @@
# Copyright (C) 2015 SignalFx, Inc. All rights reserved.
name = 'signalfx'
-version = '0.4.0'
+version = '0.4.1' | Bump to version <I> | py |
diff --git a/llvmlite/binding/module.py b/llvmlite/binding/module.py
index <HASH>..<HASH> 100644
--- a/llvmlite/binding/module.py
+++ b/llvmlite/binding/module.py
@@ -253,6 +253,8 @@ class _TypesIterator(_Iterator):
def _next(self):
return ffi.lib.LLVMPY_TypesIterNext(self)
+ next = __next__
+
# =... | Fix next method in iterator for python2 compat | py |
diff --git a/event_bus/bus.py b/event_bus/bus.py
index <HASH>..<HASH> 100644
--- a/event_bus/bus.py
+++ b/event_bus/bus.py
@@ -40,7 +40,7 @@ class EventBus:
"""
def outer(func):
- if id(func) not in self._event_funcs_ids(event):
+ if func.__name__ not in self.event_func_names(e... | Refactored the checking of unique functions. the builtin id didn't work as expected. | py |
diff --git a/pyemu/utils/gw_utils.py b/pyemu/utils/gw_utils.py
index <HASH>..<HASH> 100644
--- a/pyemu/utils/gw_utils.py
+++ b/pyemu/utils/gw_utils.py
@@ -9,7 +9,7 @@ def pilot_points_to_tpl(pp_file,tpl_file=None,name_prefix=None):
tpl_file = pp_file+".tpl"
pp_df = pd.read_csv(pp_file,delim_whitespace=T... | few more tweaks to pp to tpl | py |
diff --git a/client/setup.py b/client/setup.py
index <HASH>..<HASH> 100644
--- a/client/setup.py
+++ b/client/setup.py
@@ -14,14 +14,15 @@ with open(os.path.join(ROOT, 'wdb', '__init__.py')) as fd:
__version__ = re.search("__version__ = '([^']+)'", fd.read()).group(1)
requires = [
- "log_colorizer>=1.6",
+ ... | Remove importmagic in <I> | py |
diff --git a/cherrypy/server.py b/cherrypy/server.py
index <HASH>..<HASH> 100644
--- a/cherrypy/server.py
+++ b/cherrypy/server.py
@@ -150,7 +150,9 @@ def run_server(serverClass=None):
host = cherrypy.config.get('server.socketHost')
port = cherrypy.config.get('server.socketPort')
check_port(h... | Made the Serving HTTP log line more user friendly when using an INET socket. | py |
diff --git a/montblanc/impl/biro/v4/BiroSolver.py b/montblanc/impl/biro/v4/BiroSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/biro/v4/BiroSolver.py
+++ b/montblanc/impl/biro/v4/BiroSolver.py
@@ -29,13 +29,12 @@ from montblanc.BaseSolver import DEFAULT_NGSRC
from montblanc.BaseSolver import DEFAULT_NSSRC
f... | Remove reference to RimeEK kernel in v4 BiroSolver.py. | py |
diff --git a/trakt/interfaces/base/__init__.py b/trakt/interfaces/base/__init__.py
index <HASH>..<HASH> 100644
--- a/trakt/interfaces/base/__init__.py
+++ b/trakt/interfaces/base/__init__.py
@@ -6,6 +6,7 @@ from trakt.helpers import setdefault
from functools import wraps
import logging
+import warnings
log = log... | Changed the `Unhandled pagination response...` message to use "warnings" (instead of the logger) | py |
diff --git a/slack_sdk/socket_mode/interval_runner.py b/slack_sdk/socket_mode/interval_runner.py
index <HASH>..<HASH> 100644
--- a/slack_sdk/socket_mode/interval_runner.py
+++ b/slack_sdk/socket_mode/interval_runner.py
@@ -1,5 +1,4 @@
import threading
-import time
from threading import Thread, Event
from typing impo... | IntervalRunner: don't wait for `interval_seconds` on shutdown (#<I>) | py |
diff --git a/strictyaml/validators.py b/strictyaml/validators.py
index <HASH>..<HASH> 100644
--- a/strictyaml/validators.py
+++ b/strictyaml/validators.py
@@ -25,6 +25,8 @@ class Validator(object):
class OrValidator(Validator):
def __init__(self, validator_a, validator_b):
+ assert isinstance(validator_a... | PATCH : FEATURE : Added assert for or validators. | py |
diff --git a/packages/vaex-ui/vaex/ui/layers.py b/packages/vaex-ui/vaex/ui/layers.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-ui/vaex/ui/layers.py
+++ b/packages/vaex-ui/vaex/ui/layers.py
@@ -2737,5 +2737,6 @@ class LayerTable(object):
self.flag_needs_update()
self.plot_window.queue_upd... | change ui import due to dataframe refactor, fixes #<I> (#<I>) | py |
diff --git a/contones/geometry.py b/contones/geometry.py
index <HASH>..<HASH> 100644
--- a/contones/geometry.py
+++ b/contones/geometry.py
@@ -63,6 +63,29 @@ class Envelope(object):
def width(self):
return self.max_x - self.min_x
+ def contains(self, envp):
+ """Returns true if this envelope c... | Add Envelope contains and intersects methods | py |
diff --git a/tofu/utils.py b/tofu/utils.py
index <HASH>..<HASH> 100644
--- a/tofu/utils.py
+++ b/tofu/utils.py
@@ -384,9 +384,6 @@ def load(name, path=None, strip=None, verb=True):
elif path is None:
path = './'
path = os.path.normpath(os.path.abspath(path))
- # if path=="/Home/DV226270/To... | [LOS] took out useless comment in tofu/utils | py |
diff --git a/src/auditlog/models.py b/src/auditlog/models.py
index <HASH>..<HASH> 100644
--- a/src/auditlog/models.py
+++ b/src/auditlog/models.py
@@ -259,9 +259,9 @@ class LogEntry(models.Model):
values_display = []
# handle choices fields and Postgres ArrayField to get human readable version... | Fix issue where base_field.choices has options but we short circuit on an empty field.choices | py |
diff --git a/tests/lax_numpy_test.py b/tests/lax_numpy_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_numpy_test.py
+++ b/tests/lax_numpy_test.py
@@ -450,6 +450,8 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):
irng):
pad_width = irng([len(shape), 2][2 - pad_width_rank:], onp.int32)
def onp... | Work around breakage due to Numpy <I> version update. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,19 +1,22 @@
-from setuptools import setup
+from setuptools import setup, find_packages
+
+# NOTE: All package data is set in MANIFEST.in
setup(name='python-for-android',
version='0.1',
description='Androi... | Fixed setup.py to use with MANIFEST.in | py |
diff --git a/serializable/serializable.py b/serializable/serializable.py
index <HASH>..<HASH> 100644
--- a/serializable/serializable.py
+++ b/serializable/serializable.py
@@ -71,16 +71,21 @@ class Serializable(object):
# None if the keyword has been removed from a class
_KEYWORD_ALIASES = {}
+
@classme... | make _KEYWORD_ALIASES work with inheritance | py |
diff --git a/cyphi/utils.py b/cyphi/utils.py
index <HASH>..<HASH> 100644
--- a/cyphi/utils.py
+++ b/cyphi/utils.py
@@ -122,7 +122,7 @@ def apply_cut(cut, connectivity_matrix):
cm = connectivity_matrix.copy()
for i in cut.severed:
for j in cut.intact:
- cm[i.index][j.index] = 0
+ ... | utils.apply_cut takes cuts with indices rather than nodes | py |
diff --git a/dallinger/data.py b/dallinger/data.py
index <HASH>..<HASH> 100644
--- a/dallinger/data.py
+++ b/dallinger/data.py
@@ -223,7 +223,9 @@ def archive_data(id, src, dst):
with ZipFile(dst, 'w', ZIP_DEFLATED, allowZip64=True) as zf:
for root, dirs, files in os.walk(src):
for file in fi... | Write export zip file to format expected by Data clas | py |
diff --git a/quark/db/models.py b/quark/db/models.py
index <HASH>..<HASH> 100644
--- a/quark/db/models.py
+++ b/quark/db/models.py
@@ -155,7 +155,7 @@ class IPAddress(BASEV2, models.HasId):
ip = netaddr.IPAddress(self.address_readable)
if self.version == 4:
return str(ip.ipv4())
- ... | formatted ip returns ipv6 as verbose with full zeros listed | py |
diff --git a/tests/pytests/integration/reactor/test_reactor.py b/tests/pytests/integration/reactor/test_reactor.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/integration/reactor/test_reactor.py
+++ b/tests/pytests/integration/reactor/test_reactor.py
@@ -19,6 +19,7 @@ from tests.support.helpers import PRE_PYTEST_SK... | Skip reactor integration tests on windows, for now | py |
diff --git a/benchexec/runexecutor.py b/benchexec/runexecutor.py
index <HASH>..<HASH> 100644
--- a/benchexec/runexecutor.py
+++ b/benchexec/runexecutor.py
@@ -1106,6 +1106,15 @@ class RunExecutor(containerexecutor.ContainerExecutor):
self._energy_measurement.stop() if self._energy_measurement else None... | Kill processes earlier (before copying output files from container) This is at least an improvement for #<I>, although a proper solution should be implemented after support for Python 2 was dropped. | py |
diff --git a/airflow/jobs.py b/airflow/jobs.py
index <HASH>..<HASH> 100644
--- a/airflow/jobs.py
+++ b/airflow/jobs.py
@@ -1725,13 +1725,12 @@ class SchedulerJob(BaseJob):
# Pickle the DAGs (if necessary) and put them into a SimpleDag
for dag_id in dagbag.dags:
- dag = dagbag.get_dag(dag_... | [AIRFLOW-<I>] Improve SchedulerJob.process_file() (#<I>) By avoid processing paused DAGs. The actions we avoid here is mainly the dagbag.get_dag() on paused DAGs. DagBag.get_dag() itself is relatively expensive, so this change brings considerable performance improvement. | py |
diff --git a/registry.py b/registry.py
index <HASH>..<HASH> 100644
--- a/registry.py
+++ b/registry.py
@@ -53,9 +53,15 @@ class Registry:
elif request_type == 'resolve_publication':
self._resolve_publication(packet, registry_protocol)
- def handle_ping_timeout(self, node):
- # TODO : d... | Removing a service from registry if pong timed out | py |
diff --git a/harpoon/imager.py b/harpoon/imager.py
index <HASH>..<HASH> 100644
--- a/harpoon/imager.py
+++ b/harpoon/imager.py
@@ -210,7 +210,7 @@ class Image(object):
ports = self.figure_out_ports(extra_ports)
tty = not detach and self.interactive
- links = [link.split(":") for l... | Can specify links as just the container name | py |
diff --git a/libpebble2/services/voice.py b/libpebble2/services/voice.py
index <HASH>..<HASH> 100644
--- a/libpebble2/services/voice.py
+++ b/libpebble2/services/voice.py
@@ -120,6 +120,9 @@ class VoiceService(EventSourceMixin):
:param app_uuid: UUID of app that initiated the session
:type app_uuid: u... | reset session ID after sending a failure result for a session setup message | py |
diff --git a/tests/integration/test_base.py b/tests/integration/test_base.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_base.py
+++ b/tests/integration/test_base.py
@@ -1304,14 +1304,6 @@ def generic_game(use_random_fill=False):
return Game(use_random_fill)
-def generic_root_args(board=None, play... | Removed orphaned helper function in base specification. | py |
diff --git a/monty/json.py b/monty/json.py
index <HASH>..<HASH> 100644
--- a/monty/json.py
+++ b/monty/json.py
@@ -145,7 +145,7 @@ class MSONable(object):
parent_module = self.__class__.__module__.split('.')[0]
module_version = import_module(parent_module).__version__
d["@version"... | Remove ModuleNotFoundError since not available in Py<I> | py |
diff --git a/photos/photos.py b/photos/photos.py
index <HASH>..<HASH> 100644
--- a/photos/photos.py
+++ b/photos/photos.py
@@ -110,7 +110,7 @@ def read_notes(filename, msg=None):
notes[line] = ''
except Exception as e:
if msg:
- logger.warning('{} at file {}'.format(msg, fi... | Downgrade logging to info when no optional info about images is found | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100755
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -68,4 +68,11 @@ def test_convert_command(from_path, to_path, from_format, to_format):
mwtabfiles_study_ids_set = set(mwf.study_id for mwf in mwtabfiles_list)
mwtabfiles_analysis_id... | Begins adding unit test for download commandline method. | py |
diff --git a/mechanicalsoup/form.py b/mechanicalsoup/form.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/form.py
+++ b/mechanicalsoup/form.py
@@ -54,13 +54,11 @@ class Form(object):
value = (value,)
for choice in value:
choice = str(choice) # Allow for example litera... | form.py: minor simplification in check method Instead of storing a bool to detect if we found at least one item in a list of items that matches a certain criteria, use the `for-else` language construct, where the `else` is executed unless we `break` during the for-loop. | py |
diff --git a/greenwich/raster.py b/greenwich/raster.py
index <HASH>..<HASH> 100644
--- a/greenwich/raster.py
+++ b/greenwich/raster.py
@@ -147,6 +147,7 @@ class ImageDriver(object):
'nc': {'compress': 'deflate'},
'tif': {'tiled': 'yes', 'compress': 'packbits'}}
registry = availabl... | Add writeable key name as class attr | py |
diff --git a/meshio/ply/_ply.py b/meshio/ply/_ply.py
index <HASH>..<HASH> 100644
--- a/meshio/ply/_ply.py
+++ b/meshio/ply/_ply.py
@@ -384,7 +384,7 @@ def write(filename, mesh, binary=True): # noqa: C901
out = numpy.rec.fromarrays(
[coord for coord in mesh.points.T] + list(mesh.point_data... | Support ply write to byte streams Replace `out.tofile(fh)` with `fh.write(out.tobytes())`. The former causes a `UnsupportedOperation: fileno` error if `fh` is not a true file (on the hard disk). | py |
diff --git a/trinity/sync/full/chain.py b/trinity/sync/full/chain.py
index <HASH>..<HASH> 100644
--- a/trinity/sync/full/chain.py
+++ b/trinity/sync/full/chain.py
@@ -65,7 +65,7 @@ from trinity.utils.datastructures import (
TaskQueue,
)
from trinity.utils.ema import EMA
-from trinity.utils.humanize import humani... | display head with humanize_hash in chain sync logs | py |
diff --git a/dbusmock/mockobject.py b/dbusmock/mockobject.py
index <HASH>..<HASH> 100644
--- a/dbusmock/mockobject.py
+++ b/dbusmock/mockobject.py
@@ -191,8 +191,11 @@ class DBusMockObject(dbus.service.Object): # pylint: disable=too-many-instance-
self._reset(props)
def __del__(self) -> None:
- ... | Ignore a missing self.logfile on errors If the super() constructor dbus.service.Object.__init__ raises an exception, we end up with self.logfile never being assigned. This causes an AttributeError during __del__, obscuring the actual issues in the code. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,9 @@
from setuptools import setup, find_packages
+import codecs
setup(name='googleanalytics',
description='A wrapper for the Google Analytics API.',
- long_description=open('README.rst').read(),
+ long_d... | FIX for open on asci encoded file. | py |
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index <HASH>..<HASH> 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -319,7 +319,6 @@ class OpenBufferlistCommand(Command):
else:
bl = buffers.BufferlistBuffer(ui, self.filtfun)
ui.buffer_open(bl)... | fix issue #<I> apparently, this rebuild is obsolete | py |
diff --git a/pnc_cli/swagger_client/models/support_level_page.py b/pnc_cli/swagger_client/models/support_level_page.py
index <HASH>..<HASH> 100644
--- a/pnc_cli/swagger_client/models/support_level_page.py
+++ b/pnc_cli/swagger_client/models/support_level_page.py
@@ -142,7 +142,7 @@ class SupportLevelPage(object):
... | correct swagger annotation problem for SupportLevelPage | py |
diff --git a/tests/unit/core/ModelsTest.py b/tests/unit/core/ModelsTest.py
index <HASH>..<HASH> 100755
--- a/tests/unit/core/ModelsTest.py
+++ b/tests/unit/core/ModelsTest.py
@@ -151,13 +151,13 @@ class ModelsTest:
loglevel = ws.settings["loglevel"]
ws.settings["loglevel"] = 50
assert len(phy... | Changed assert len(phase) to <I> from <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -137,6 +137,15 @@ c_ext = Feature(
if "--no_ext" in sys.argv:
sys.argv = [x for x in sys.argv if x != "--no_ext"]
features = {}
+elif sys.byteorder == "big":
+ print """
+*****************************************... | don't attempt to build C ext on big endian PYTHON-<I> | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -1353,6 +1353,7 @@ class BaseHighState(object):
errors.append(('Name {0} in sls {1} is not a dictionary'
.format(name, sls)))
... | Throw multiple state dec error, fix #<I> when a single id contains multiple state decs it will error out since the highstate structure does not support this formatting | py |
diff --git a/tests/test_configuration.py b/tests/test_configuration.py
index <HASH>..<HASH> 100644
--- a/tests/test_configuration.py
+++ b/tests/test_configuration.py
@@ -214,6 +214,13 @@ def test_tox_deps_are_ordered():
assert deps == ordered
+def test_tox_whitelist_externals_are_ordered():
+ """Tox wh... | test: order tox whitelist externals #<I> | py |
diff --git a/post_office/__init__.py b/post_office/__init__.py
index <HASH>..<HASH> 100644
--- a/post_office/__init__.py
+++ b/post_office/__init__.py
@@ -1,4 +1,4 @@
-VERSION = (3, 2, 0, 'dev')
+VERSION = (3, 2, 0)
from .backends import EmailBackend | Bump to version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,8 +12,8 @@ with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
- 'aiobotocore==0.4.5',
- 'boto3==1.4.7'
+ 'aiobotocore==0.5.2',
+ 'boto3>=1.4.7'
]
setup_requirem... | Bumped aiobotocore version | py |
diff --git a/dynamic_rest/routers.py b/dynamic_rest/routers.py
index <HASH>..<HASH> 100644
--- a/dynamic_rest/routers.py
+++ b/dynamic_rest/routers.py
@@ -36,7 +36,7 @@ def get_directory(request):
six.iteritems(endpoints),
key=sort_key
):
- if endpoint_name == '_url':
+ ... | Fix get_directory to understand that _-prefixed nodes are not endpoints; add further comments | py |
diff --git a/pyaxiom/netcdf/sensors/timeseries.py b/pyaxiom/netcdf/sensors/timeseries.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/netcdf/sensors/timeseries.py
+++ b/pyaxiom/netcdf/sensors/timeseries.py
@@ -255,7 +255,10 @@ class TimeSeries(object):
elif self.vertical_positive.lower() == 'u... | If there are no verticals, set surface_altitude to the vertical_fill | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,13 +4,7 @@ import sys, os
version = '0.3.4'
install_requires = []
-
-CURRENT_FOLDER = os.path.dirname(__file__)
-
-def _py26OrGreater():
- return sys.hexversion > 0x20600f0
-
-if not _py26OrGreater():
+if sys.hexvers... | clean up setup.py version checker | py |
diff --git a/test/unit_test/gui/test_main_ui.py b/test/unit_test/gui/test_main_ui.py
index <HASH>..<HASH> 100644
--- a/test/unit_test/gui/test_main_ui.py
+++ b/test/unit_test/gui/test_main_ui.py
@@ -295,6 +295,7 @@ class TestMainUI():
QtTest.QTest.qWait(PAUSE)
# just use default tone settings, for now... | Added to wait so tests don't interfere with modality | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,12 +11,14 @@ setup(
version=version,
description='Bitcoin Cash made easier.',
long_description=open('README.rst', 'r').read(),
+ long_description_content_type='text/markdown',
author='Teran McKinney'... | Added Markdown support for PyPi | py |
diff --git a/urlextract.py b/urlextract.py
index <HASH>..<HASH> 100644
--- a/urlextract.py
+++ b/urlextract.py
@@ -81,7 +81,7 @@ class URLExtract:
self._hostname_re = re.compile("^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])$")
- self._stop_chars_left = set(string.whitespace) | {'\"', '\'', '<... | '=' should not be in hostname - adding to left stop chars | py |
diff --git a/tests/pipeline/test_technical.py b/tests/pipeline/test_technical.py
index <HASH>..<HASH> 100644
--- a/tests/pipeline/test_technical.py
+++ b/tests/pipeline/test_technical.py
@@ -72,17 +72,17 @@ class BollingerBandsTestCase(WithTechnicalFactor, ZiplineTestCase):
middle_cols = []
upper_cols... | TEST: Don't mask unexpected exceptions from TALIB. We know when we expect the error to be raised. | py |
diff --git a/pytablewriter/_logger.py b/pytablewriter/_logger.py
index <HASH>..<HASH> 100644
--- a/pytablewriter/_logger.py
+++ b/pytablewriter/_logger.py
@@ -54,8 +54,8 @@ def set_log_level(log_level):
set_logger(is_enable=False)
else:
set_logger(is_enable=True)
- logger.level = log_level... | Modify logging setup to avoid setup recursion | py |
diff --git a/charmhelpers/contrib/ansible/__init__.py b/charmhelpers/contrib/ansible/__init__.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/ansible/__init__.py
+++ b/charmhelpers/contrib/ansible/__init__.py
@@ -75,20 +75,20 @@ ansible_hosts_path = '/etc/ansible/hosts'
ansible_vars_path = '/etc/ansible/host... | Add support for providing a custom ansible install location | py |
diff --git a/OMMBV/trans.py b/OMMBV/trans.py
index <HASH>..<HASH> 100644
--- a/OMMBV/trans.py
+++ b/OMMBV/trans.py
@@ -20,7 +20,7 @@ try:
# geocentric Earth.
# ecef_to_geodetic = trans.ecef_to_geocentric
-except (AttributeError, NameError):
+except (AttributeError, NameError, ModuleNotFoundError):
estr... | BUG/DOC: Expand exceptions for not importing fortran | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,7 @@ setuptools.setup(
"warehouse.accounts",
"warehouse.cache",
"warehouse.cache.origin",
+ "warehouse.classifiers",
"warehouse.cli",
"warehouse.cli.db",
"... | Ensure warehouse.classifiers gets installed. | py |
diff --git a/bin/parser/train_ud.py b/bin/parser/train_ud.py
index <HASH>..<HASH> 100644
--- a/bin/parser/train_ud.py
+++ b/bin/parser/train_ud.py
@@ -71,6 +71,8 @@ def main(train_loc, dev_loc, model_dir, tag_map_loc):
features = get_templates('basic')
model_dir = pathlib.Path(model_dir)
+ if not (mo... | Update train_ud.py Create deps folder if it doesn't exist. | py |
diff --git a/pycbc/ahope/ahope_utils.py b/pycbc/ahope/ahope_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/ahope_utils.py
+++ b/pycbc/ahope/ahope_utils.py
@@ -738,7 +738,10 @@ class AhopeFile(object):
duration = str(end-start)
start = str(start)
- return "%s-%s-%s-%s.%s" % (if... | add lfn pfn to ahopefile, along with map_str representation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+import os
+
from setuptools import setup
VERSION = '0.10.4'
@@ -8,7 +10,7 @@ setup(
packages=["conllu"],
version=VERSION,
description='CoNLL-U Parser parses a CoNLL-U f... | Python <I> needs explicit path defined in Travis. | py |
diff --git a/teneto/networkmeasures/shortest_temporal_path.py b/teneto/networkmeasures/shortest_temporal_path.py
index <HASH>..<HASH> 100755
--- a/teneto/networkmeasures/shortest_temporal_path.py
+++ b/teneto/networkmeasures/shortest_temporal_path.py
@@ -54,12 +54,12 @@ def shortest_temporal_path(tnet, quiet=1):
I... | removing trailing spaces in doctests | py |
diff --git a/pycbc/ahope/ahope_utils.py b/pycbc/ahope/ahope_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/ahope_utils.py
+++ b/pycbc/ahope/ahope_utils.py
@@ -812,10 +812,10 @@ class AhopeFile(object):
@property
def pfn(self):
- return self.url
+ return self.path
def map... | input and output map fail with urls, huh???? | py |
diff --git a/mordred/config.py b/mordred/config.py
index <HASH>..<HASH> 100644
--- a/mordred/config.py
+++ b/mordred/config.py
@@ -590,6 +590,14 @@ class Config():
return gelk_backends + extra_backends
@classmethod
+ def get_study_sections(cls):
+ # a study name could include and extra ":<para... | [config] Include sections for studies This code allows to define sections for studies (onion, demography and areas of code). In any backend section, a list of studies can be declared. Every declared study must have its parameters in a specific cfg section defined by <type-of-the-study>:<study-id> (e.g., enrich_onion:1... | py |
diff --git a/everett/__init__.py b/everett/__init__.py
index <HASH>..<HASH> 100644
--- a/everett/__init__.py
+++ b/everett/__init__.py
@@ -56,5 +56,5 @@ __email__ = 'willkg@mozilla.com'
# yyyymmdd
__releasedate__ = ''
-# x.y or x.y.dev
-__version__ = '0.9.dev'
+# x.y or x.y.dev0
+__version__ = '0.9.dev0' | Fix dev version to be more correct | py |
diff --git a/ELiDE/board/pawn.py b/ELiDE/board/pawn.py
index <HASH>..<HASH> 100644
--- a/ELiDE/board/pawn.py
+++ b/ELiDE/board/pawn.py
@@ -251,7 +251,10 @@ class Pawn(PawnSpot):
before listening to the database again.
"""
- if self.mirror['location'] != self.loc_name:
+ ... | Dumb way to handle the case where I send a new location when there isn't one in the db I think I should really be removing the pawn from the board in such a case | py |
diff --git a/niworkflows/interfaces/bids.py b/niworkflows/interfaces/bids.py
index <HASH>..<HASH> 100644
--- a/niworkflows/interfaces/bids.py
+++ b/niworkflows/interfaces/bids.py
@@ -467,7 +467,9 @@ desc-preproc_bold.json'
is_nii = out_file.endswith('.nii') or out_file.endswith('.nii.gz')
if... | FIX: Disable mmap on file load | py |
diff --git a/dictobj.py b/dictobj.py
index <HASH>..<HASH> 100644
--- a/dictobj.py
+++ b/dictobj.py
@@ -10,7 +10,10 @@ class DictionaryObject(object):
"""
def __init__(self, dictionary=None, recursive=True):
"""
- Take as input a dictionary-like object and create
+ Take as input a dictionary-like objec... | Fixing up the comments in the code. | py |
diff --git a/hwd/wrapper.py b/hwd/wrapper.py
index <HASH>..<HASH> 100644
--- a/hwd/wrapper.py
+++ b/hwd/wrapper.py
@@ -123,3 +123,14 @@ class Wrapper(object):
if not v is None:
return v
return default
+
+ @property
+ def aliases(self):
+ """
+ Return a list of ... | Added property for obtaining aliases | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -60,10 +60,14 @@ Debian and Ubuntu users should issue the following command:
$ sudo apt-get install build-essential python-dev
-RedHat, CentOS, and Fedora users should issue the following command:
+RedHat and CentOS u... | Update hints for popular operating systems. Fedora now uses `dnf`. | py |
diff --git a/jsonsempai/tests/test_sempai.py b/jsonsempai/tests/test_sempai.py
index <HASH>..<HASH> 100644
--- a/jsonsempai/tests/test_sempai.py
+++ b/jsonsempai/tests/test_sempai.py
@@ -102,3 +102,28 @@ class TestSempai(unittest.TestCase):
with jsonsempai.imports():
self.assertRaises(ImportErro... | Add test for importing files from packages | py |
diff --git a/install_venv.py b/install_venv.py
index <HASH>..<HASH> 100644
--- a/install_venv.py
+++ b/install_venv.py
@@ -150,6 +150,9 @@ def pip_install(*args):
def install_dependencies(venv=VENV):
print 'Installing dependencies with pip (this can take a while)...'
+ # First things first, make sure our ven... | Upgrade pip in the venv when we build it. Change-Id: I<I>c9e3a1ef<I>b<I>cb3a6eed<I>ec<I> | py |
diff --git a/test/test_signature.py b/test/test_signature.py
index <HASH>..<HASH> 100644
--- a/test/test_signature.py
+++ b/test/test_signature.py
@@ -277,7 +277,7 @@ run("touch ${output}")
start = time.time()
Base_Executor(wf).run()
# rerun takes less than 1 second
- self.assertLess(t... | Fix another travis CI timging problem | py |
diff --git a/angr/engines/vex/heavy/heavy.py b/angr/engines/vex/heavy/heavy.py
index <HASH>..<HASH> 100644
--- a/angr/engines/vex/heavy/heavy.py
+++ b/angr/engines/vex/heavy/heavy.py
@@ -42,7 +42,7 @@ class SimStateStorageMixin(VEXMixin):
self.state.memory.store(addr, concrete_data, endness=endness, action... | Fix memory_write_length is None during BPs (#<I>) | py |
diff --git a/tests/test_guess.py b/tests/test_guess.py
index <HASH>..<HASH> 100644
--- a/tests/test_guess.py
+++ b/tests/test_guess.py
@@ -36,12 +36,12 @@ def test_ugly_tag2version(input_data):
def test_version2tag_simple():
- assert '1.2.3' == guess.version2tag('1.2.3')
+ assert guess.version2tag('1.2.3') =... | tests: use "result == expected" pattern in version2tag tests Prior to this change, we asserted version2tag() behavior using a "expected == result" pattern. Use the more common "result == expected" pattern instead. This makes the tests easier to read and understand. Change-Id: Iec<I>bf<I>d9ffa<I>b<I>f0bc0e0f7ba0f<I>c... | py |
diff --git a/easymode/admin/utils.py b/easymode/admin/utils.py
index <HASH>..<HASH> 100644
--- a/easymode/admin/utils.py
+++ b/easymode/admin/utils.py
@@ -1,4 +1,5 @@
from django.contrib import admin
+from django.contrib.admin.sites import AlreadyRegistered
from django.db.models.base import ModelBase
from easymode... | Now register_all will ignore modles that are AlreadyRegistered and continue trying to register other models in the module. | py |
diff --git a/parsl/tests/test_data/test_file.py b/parsl/tests/test_data/test_file.py
index <HASH>..<HASH> 100644
--- a/parsl/tests/test_data/test_file.py
+++ b/parsl/tests/test_data/test_file.py
@@ -17,6 +17,15 @@ def test_files():
assert x.filepath == test['path'], "[TEST] Path error. Expected {0} Got {1}".fo... | Adding a test for File open support | py |
diff --git a/create_app.py b/create_app.py
index <HASH>..<HASH> 100644
--- a/create_app.py
+++ b/create_app.py
@@ -206,7 +206,11 @@ def _get_env():
else:
envstr = sp.Popen('printenv', shell=True,
stdout=sp.PIPE).communicate()[0]
- env = [a.split('=') for a in envstr.decode().... | Mac app: Improve how we try to grab environment variables Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,8 +56,15 @@ setup(name='polyaxon-deploy',
install_requires=[
"polyaxon-schemas==0.5.4",
],
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
classifiers=[
... | Add python_requires and Trove classifiers `python_requires` helps pip ensure the correct version of this package is installed for the user's running Python version. `classifiers` help make it clear on <URL> | py |
diff --git a/yandextank/plugins/Pandora/plugin.py b/yandextank/plugins/Pandora/plugin.py
index <HASH>..<HASH> 100644
--- a/yandextank/plugins/Pandora/plugin.py
+++ b/yandextank/plugins/Pandora/plugin.py
@@ -206,6 +206,7 @@ class Plugin(GeneratorPlugin):
logger.info('Successfully moved resource %s', dst... | stop tank if it can't prepare resources | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ setup(
include_package_data=True,
install_requires=['sovrin-common-dev==0.2.64', 'anoncreds-dev==0.3.8'],
setup_requires=['pytest-runner'],
- tests_require=['pytest', 'sovrin-node-dev==0.3.105'... | up node version to <I> | py |
diff --git a/test/acid.py b/test/acid.py
index <HASH>..<HASH> 100755
--- a/test/acid.py
+++ b/test/acid.py
@@ -311,7 +311,10 @@ def check(opts, args):
filenames = dir_paths
completed_filenames = set()
- if opts.compare_bytecode:
+ if opts.compare_bytecode and opts.compare_ast:
+ comparison_func... | Add support for using AST and bytecode comparison If the AST comparison fails, the bytecode comparison will be done. | py |
diff --git a/tests/end_to_end/test_validation_end_to_end.py b/tests/end_to_end/test_validation_end_to_end.py
index <HASH>..<HASH> 100644
--- a/tests/end_to_end/test_validation_end_to_end.py
+++ b/tests/end_to_end/test_validation_end_to_end.py
@@ -183,19 +183,20 @@ def test_end_to_end():
featurename = 'Z_1'
su... | Fix broken end-to-end testing | py |
diff --git a/src/tse/main.py b/src/tse/main.py
index <HASH>..<HASH> 100755
--- a/src/tse/main.py
+++ b/src/tse/main.py
@@ -18,7 +18,7 @@ class Env:
if begin:
self.begincode = self.build_code("\n".join(begin))
if end:
- self.endcode = self.build_code(end)
+ self.endco... | -e option didn't work. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -1594,7 +1594,8 @@ class Minion(MinionBase):
# this minion is blacked out. Only allow saltutil.refresh_pillar and the whitelist
if function_name != 'saltutil.re... | priority for minion_blackout_whitelist by grains | py |
diff --git a/paramiko/transport.py b/paramiko/transport.py
index <HASH>..<HASH> 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1686,7 +1686,11 @@ class Transport (threading.Thread):
kind = m.get_string()
self._log(DEBUG, 'Received global request "%s"' % kind)
want_reply = ... | [project @ <EMAIL><I>-bae<I>f<I>ca8ed<I>a] patch from nicholas piper to catch keepalives sent to the client | py |
diff --git a/simpycity/model.py b/simpycity/model.py
index <HASH>..<HASH> 100644
--- a/simpycity/model.py
+++ b/simpycity/model.py
@@ -305,8 +305,9 @@ class SimpleModel(Construct):
if name in table:
if name in cols:
return cols[name]
- elif name in cols[... | Adding a test for a model not having __dirty defined. | py |
diff --git a/spyder/plugins/completion/kite/plugin.py b/spyder/plugins/completion/kite/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/completion/kite/plugin.py
+++ b/spyder/plugins/completion/kite/plugin.py
@@ -157,7 +157,7 @@ class KiteCompletionPlugin(SpyderCompletionPlugin):
box.set_chec... | Kite: Update faulty installation message | py |
diff --git a/spambl.py b/spambl.py
index <HASH>..<HASH> 100644
--- a/spambl.py
+++ b/spambl.py
@@ -91,6 +91,7 @@ class DNSBLService(object):
class BaseDNSBLClient(object):
''' Implements basic feaures of DNSBL client classes '''
+
_LISTS_ATTR_NAME = None
def __init__(self):
@@ -98,27 +99,10 ... | Remove constructors from BaseDNSBLClient subclasses | py |
diff --git a/uproot/version.py b/uproot/version.py
index <HASH>..<HASH> 100644
--- a/uproot/version.py
+++ b/uproot/version.py
@@ -30,7 +30,7 @@
import re
-__version__ = "3.4.18"
+__version__ = "3.4.19"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__)) | new version to deploy the fix for #<I> | py |
diff --git a/dolo/compiler/function_compiler_matlab.py b/dolo/compiler/function_compiler_matlab.py
index <HASH>..<HASH> 100644
--- a/dolo/compiler/function_compiler_matlab.py
+++ b/dolo/compiler/function_compiler_matlab.py
@@ -4,8 +4,6 @@ import codegen
def str_to_expr(s):
return ast.parse(s).body[0]
-from diff... | BUG: removed reference to experimental file in function_compiler_matlab | py |
diff --git a/fcm_django/models.py b/fcm_django/models.py
index <HASH>..<HASH> 100644
--- a/fcm_django/models.py
+++ b/fcm_django/models.py
@@ -165,7 +165,7 @@ class AbstractFCMDevice(Device):
device_id = models.CharField(
verbose_name=_("Device ID"), blank=True, null=True, db_index=True,
help_tex... | Update models.py max_length of registration id | py |
diff --git a/cloudvolume/datasource/graphene/mesh/sharded.py b/cloudvolume/datasource/graphene/mesh/sharded.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/datasource/graphene/mesh/sharded.py
+++ b/cloudvolume/datasource/graphene/mesh/sharded.py
@@ -61,7 +61,7 @@ class GrapheneShardedMeshSource(GrapheneUnshardedMeshSo... | fixing dynamic exists (#<I>) | py |
diff --git a/holoviews/core/data.py b/holoviews/core/data.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/data.py
+++ b/holoviews/core/data.py
@@ -269,14 +269,15 @@ class Columns(Element):
return self.aggregate(dims, function, spreadfn)
- def aggregate(self, dimensions=[], function=None, spreadfn=No... | Columns.aggregate aggregates over the key dimensions by default | py |
diff --git a/src/hypercorn/__about__.py b/src/hypercorn/__about__.py
index <HASH>..<HASH> 100644
--- a/src/hypercorn/__about__.py
+++ b/src/hypercorn/__about__.py
@@ -1 +1 @@
-__version__ = "0.9.4"
+__version__ = "0.9.4+dev" | Following the release of <I> bump to +dev | py |
diff --git a/sos/archive.py b/sos/archive.py
index <HASH>..<HASH> 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -420,7 +420,8 @@ class TarFileArchive(FileCacheArchive):
if cmd != "gzip":
cmd = "%s -1" % cmd
try:
- r = sos_get_command_output("%s %s" % (cmd,... | [archive] compress tarball without a timeout Compressing tarball uses default <I>s timeout, while sosreports with large data or random content can require more time to xz/gz the tarball. Resolves: #<I> | py |
diff --git a/ethereum/chain.py b/ethereum/chain.py
index <HASH>..<HASH> 100644
--- a/ethereum/chain.py
+++ b/ethereum/chain.py
@@ -293,7 +293,9 @@ class Chain(object):
head_hash=self.head, block_difficulty=block.chain_difficulty(),
head_difficulty=self.head.chain_difficulty... | Added pruning to transaction and receipt tries | py |
diff --git a/src/jottalib/JFS.py b/src/jottalib/JFS.py
index <HASH>..<HASH> 100644
--- a/src/jottalib/JFS.py
+++ b/src/jottalib/JFS.py
@@ -490,6 +490,15 @@ class JFSIncompleteFile(JFSCorruptFile):
'Resume uploading an incomplete file, after a previous upload was interrupted. Returns new file object'
i... | Explicitly get JFSIncompleteFile again if .size is not returned from the server (this is the default in e.g. a file listing) Closes #<I> and #<I> | py |
diff --git a/source/rafcon/gui/utils/dialog.py b/source/rafcon/gui/utils/dialog.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/utils/dialog.py
+++ b/source/rafcon/gui/utils/dialog.py
@@ -266,7 +266,7 @@ class RAFCONCheckBoxTableDialog(RAFCONButtonDialog):
super(RAFCONCheckBoxTableDialog, self).__init... | fix(dialog): use correct keyword in dialog constructor | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.