diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py index <HASH>..<HASH> 100644 --- a/pychromecast/socket_client.py +++ b/pychromecast/socket_client.py @@ -551,7 +551,18 @@ class SocketClient(threading.Thread): # poll the socket, as well as the socketpair to allow us to be interrupted ...
Catch errors thrown by select call (#<I>)
py
diff --git a/tests/all.py b/tests/all.py index <HASH>..<HASH> 100755 --- a/tests/all.py +++ b/tests/all.py @@ -10,7 +10,11 @@ class TestAll(unittest.TestCase): def setUp(self): """ reset graphitesend """ + # Drop any connections or modules that have been setup from other tests graphitese...
added monkeypatch for graphite server during testing
py
diff --git a/src/binwalk/modules/hexdiff.py b/src/binwalk/modules/hexdiff.py index <HASH>..<HASH> 100644 --- a/src/binwalk/modules/hexdiff.py +++ b/src/binwalk/modules/hexdiff.py @@ -82,21 +82,26 @@ class HexDiff(Module): return False def hexascii(self, target_data, byte, offset): - diff_count = ...
Fixed hexdiff colorization bug
py
diff --git a/src/you_get/extractors/twitter.py b/src/you_get/extractors/twitter.py index <HASH>..<HASH> 100644 --- a/src/you_get/extractors/twitter.py +++ b/src/you_get/extractors/twitter.py @@ -69,8 +69,14 @@ def twitter_download(url, output_dir='.', merge=True, info_only=False, **kwargs) vmap = get_conte...
[twitter] support scribe_playlist_url (vine)
py
diff --git a/wagtailmarkdown/__init__.py b/wagtailmarkdown/__init__.py index <HASH>..<HASH> 100644 --- a/wagtailmarkdown/__init__.py +++ b/wagtailmarkdown/__init__.py @@ -23,7 +23,7 @@ class MarkdownBlock(TextBlock): class MarkdownField(TextField): def __init__(self, **kwargs): if 'help_text' not in kwar...
MarkdownField: remove <em> from help text
py
diff --git a/setuptools_scm/__init__.py b/setuptools_scm/__init__.py index <HASH>..<HASH> 100644 --- a/setuptools_scm/__init__.py +++ b/setuptools_scm/__init__.py @@ -30,13 +30,16 @@ def version_from_scm(root): def dump_version(root, version, write_to): if not write_to: return - target = os.path.join(...
Error in 'dump_version' now correctly raised This error occurred because the function wasn't correctly extracting the file extension from a filename while trying to raise an Exception, and so the descriptive error never got printed.
py
diff --git a/src/qinfer/tomography/models.py b/src/qinfer/tomography/models.py index <HASH>..<HASH> 100644 --- a/src/qinfer/tomography/models.py +++ b/src/qinfer/tomography/models.py @@ -144,7 +144,7 @@ class TomographyModel(Model): @property def expparams_dtype(self): return [ - ('meas', ...
Force fieldnames to be str in Python 2.
py
diff --git a/jaraco/windows/batch.py b/jaraco/windows/batch.py index <HASH>..<HASH> 100644 --- a/jaraco/windows/batch.py +++ b/jaraco/windows/batch.py @@ -2,7 +2,7 @@ import sys import subprocess import itertools -from more_itertools.recipes import consume +from more_itertools import consume, always_iterable d...
Rely on always_iterable
py
diff --git a/googleanalytics/query.py b/googleanalytics/query.py index <HASH>..<HASH> 100644 --- a/googleanalytics/query.py +++ b/googleanalytics/query.py @@ -299,7 +299,6 @@ class Query(object): def clone(self): query = self.__class__(api=self.api, meta=self.meta) query.raw = deepcopy(self.raw) ...
Workaround for overly eager IPython triggering of report lazy-loading
py
diff --git a/src/segyviewlib/__init__.py b/src/segyviewlib/__init__.py index <HASH>..<HASH> 100644 --- a/src/segyviewlib/__init__.py +++ b/src/segyviewlib/__init__.py @@ -45,6 +45,6 @@ from .segywidgetcollection import SegyTabWidget from .version import version as __version__ -__copyright__ = 'Copyright 2016, Stat...
Rename Statoil to Equinor in __init__
py
diff --git a/mopidy_alarmclock/alarm_manager.py b/mopidy_alarmclock/alarm_manager.py index <HASH>..<HASH> 100644 --- a/mopidy_alarmclock/alarm_manager.py +++ b/mopidy_alarmclock/alarm_manager.py @@ -53,8 +53,8 @@ class AlarmManager(object): if self.core.tracklist.random: self.core.playback.next() ...
Fixed setting volume and mute on Mopidy<<I>
py
diff --git a/scarlet/assets/models.py b/scarlet/assets/models.py index <HASH>..<HASH> 100644 --- a/scarlet/assets/models.py +++ b/scarlet/assets/models.py @@ -110,7 +110,7 @@ class AssetBase(AutoTagModel): # this means that we are using celery tasks.ensure_crops.apply_async(args=[self....
pass in PK for non-celery mode
py
diff --git a/tests/integration/shell/test_auth.py b/tests/integration/shell/test_auth.py index <HASH>..<HASH> 100644 --- a/tests/integration/shell/test_auth.py +++ b/tests/integration/shell/test_auth.py @@ -59,12 +59,18 @@ class AuthTest(ShellCase): def setUp(self): for user in (self.userA, self.userB): ...
Workaround getpwnam in auth test for MacOSX
py
diff --git a/web/web.py b/web/web.py index <HASH>..<HASH> 100644 --- a/web/web.py +++ b/web/web.py @@ -241,6 +241,9 @@ class HTTPHeaders(object): def __len__(self): return len(self.headers) + def clear(self): + self.headers.clear() + def add(self, header): key, value = (item.strip() for item in header.rstr...
Clear headers in case of an error
py
diff --git a/src/localimport/__init__.py b/src/localimport/__init__.py index <HASH>..<HASH> 100755 --- a/src/localimport/__init__.py +++ b/src/localimport/__init__.py @@ -12,10 +12,7 @@ import typing as t import zipfile if t.TYPE_CHECKING: - from importlib.machinery import ModuleSpec - from types import ModuleTyp...
import _MetaPathFinder from sys under typing
py
diff --git a/galpy/df/sphericaldf.py b/galpy/df/sphericaldf.py index <HASH>..<HASH> 100644 --- a/galpy/df/sphericaldf.py +++ b/galpy/df/sphericaldf.py @@ -1,7 +1,16 @@ # Superclass for spherical distribution functions, contains # - sphericaldf: superclass of all spherical DFs # - anisotropicsphericaldf: supercla...
Imports for sphericaldf
py
diff --git a/airflow/contrib/operators/gcs_to_gcs.py b/airflow/contrib/operators/gcs_to_gcs.py index <HASH>..<HASH> 100644 --- a/airflow/contrib/operators/gcs_to_gcs.py +++ b/airflow/contrib/operators/gcs_to_gcs.py @@ -51,7 +51,7 @@ class GoogleCloudStorageToGoogleCloudStorageOperator(BaseOperator): d...
[AIRFLOW-<I>] Fixed Super class name for the gcs to gcs copy operator Fixed incorrect Super class name in gcs to gcs copy operator from `GoogleCloudStorageOperatorToGo ogleCloudStorageOperator` to `GoogleCloudStorageToGoogleCloudStorageOperator`. Closes #<I> from kaxil/patch-2
py
diff --git a/bokeh/properties.py b/bokeh/properties.py index <HASH>..<HASH> 100644 --- a/bokeh/properties.py +++ b/bokeh/properties.py @@ -480,15 +480,12 @@ class MetaHasProps(type): new_class_attrs[name] = prop names.add(name) if isinstance(prop, BasicProperty): - ...
Make HasProps.properties_containers include containers with refs This method is unused anyway it looks like, so it might as well make sense and do what it says it does.
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 @@ -137,7 +137,8 @@ def get_risk_functions(oqparam, kind='vulnerability fragility consequence ' assert riskid == ffl.id ...
Refactored the CompositeRiskModel [skip hazardlib]
py
diff --git a/websocket.py b/websocket.py index <HASH>..<HASH> 100644 --- a/websocket.py +++ b/websocket.py @@ -162,8 +162,8 @@ def create_connection(url, timeout=None, **options): If you set "header" dict object, you can set your own custom header. >>> conn = create_connection("ws://echo.websocket.org/", - ...
header argument is sequence insted of dict
py
diff --git a/pypump/models/feed.py b/pypump/models/feed.py index <HASH>..<HASH> 100644 --- a/pypump/models/feed.py +++ b/pypump/models/feed.py @@ -87,13 +87,11 @@ class ItemList(object): def get_page(self, url): """ Get a page of items from API """ if url: - try: - data ...
Don't hide exception in Feed.get_page() It is more helpful to let us know something actually went wrong
py
diff --git a/bokeh/document.py b/bokeh/document.py index <HASH>..<HASH> 100644 --- a/bokeh/document.py +++ b/bokeh/document.py @@ -287,7 +287,8 @@ class Document(object): self._add(*self.context.references()) if not models: models = self._models.values() - return dump(models, docid...
WIP: colormapper+server
py
diff --git a/tensor2tensor/data_generators/generator_utils.py b/tensor2tensor/data_generators/generator_utils.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/data_generators/generator_utils.py +++ b/tensor2tensor/data_generators/generator_utils.py @@ -484,14 +484,14 @@ class SequencePacker(object): self._spacin...
range returns a generator in Python3, but we need list here
py
diff --git a/master/setup.py b/master/setup.py index <HASH>..<HASH> 100755 --- a/master/setup.py +++ b/master/setup.py @@ -80,6 +80,9 @@ class TestCommand(_SetupBuildCommand): """ from twisted.scripts.trial import run + # remove the 'test' option from argv + sys.argv.remove('test') + ...
fix 'setup.py test' to not try to run Python's tests too Fixes #<I>
py
diff --git a/werkzeug/urls.py b/werkzeug/urls.py index <HASH>..<HASH> 100644 --- a/werkzeug/urls.py +++ b/werkzeug/urls.py @@ -848,8 +848,6 @@ class Href(object): base = self.base if base[-1:] != '/': base += '/' - if PY2: - name = name.decode('ascii') return Hr...
Removed an unnecessary PY2 branch
py
diff --git a/eventsourcing/tests/test_application.py b/eventsourcing/tests/test_application.py index <HASH>..<HASH> 100644 --- a/eventsourcing/tests/test_application.py +++ b/eventsourcing/tests/test_application.py @@ -13,7 +13,7 @@ from eventsourcing.tests.test_postgres import drop_postgres_table class TestApplic...
Adjusted timeit_numbers (balance between reliable results and duration).
py
diff --git a/pymc/tests/test_missing.py b/pymc/tests/test_missing.py index <HASH>..<HASH> 100644 --- a/pymc/tests/test_missing.py +++ b/pymc/tests/test_missing.py @@ -25,15 +25,15 @@ class TestMissing(TestCase): M = MCMC([mu, s, tau, x]) # Run sampler - M.sample(20000, 5000, progress_...
undid changes to test_missing
py
diff --git a/openshift/helper/__init__.py b/openshift/helper/__init__.py index <HASH>..<HASH> 100644 --- a/openshift/helper/__init__.py +++ b/openshift/helper/__init__.py @@ -155,7 +155,7 @@ class KubernetesObjectHelper(object): raise OpenShiftException(msg, status=exc.status) return_obj = self.__...
Fixes patch_object returning None
py
diff --git a/python/rosette/api.py b/python/rosette/api.py index <HASH>..<HASH> 100644 --- a/python/rosette/api.py +++ b/python/rosette/api.py @@ -35,8 +35,10 @@ _IsPy3 = sys.version_info[0] == 3 try: import urlparse + import urllib except ImportError: import urllib.parse as urlparse + import urllib...
RCB-<I>: Update to use urlencode
py
diff --git a/chess/engine.py b/chess/engine.py index <HASH>..<HASH> 100644 --- a/chess/engine.py +++ b/chess/engine.py @@ -2046,13 +2046,10 @@ class AnalysisResult: returns it. Returns ``None`` if the analysis has been stopped and all information has been consumed. - It might be more convenie...
Simplify AnalysisResult.next()
py
diff --git a/pipetools/utils.py b/pipetools/utils.py index <HASH>..<HASH> 100644 --- a/pipetools/utils.py +++ b/pipetools/utils.py @@ -1,6 +1,6 @@ from __future__ import print_function from collections import Mapping -from functools import partial +from functools import partial, wraps from itertools import islice, t...
(Fixed docs for flatten & count)
py
diff --git a/i3pystatus/network.py b/i3pystatus/network.py index <HASH>..<HASH> 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -313,6 +313,8 @@ class Network(IntervalModule, ColorRangeModule): else: self.network_traffic = None + if not self.dynamic_color: + s...
Fixed processing of dynamic_colors settings, previously ignored.
py
diff --git a/tests/test_parallelism.py b/tests/test_parallelism.py index <HASH>..<HASH> 100644 --- a/tests/test_parallelism.py +++ b/tests/test_parallelism.py @@ -70,7 +70,8 @@ class ParallelismTest(unittest.TestCase): def test_identical_fields(self): # This checks that modules with identical fields are n...
comment update, now that module imports are gone Reviewers: sean Reviewed By: sean Differential Revision: <URL>
py
diff --git a/bokeh/document.py b/bokeh/document.py index <HASH>..<HASH> 100644 --- a/bokeh/document.py +++ b/bokeh/document.py @@ -189,9 +189,8 @@ class Document(object): None ''' for obj in objects: - if obj in self._plotcontext.children: - continue - ...
should add object dependents even if object is in plot context
py
diff --git a/odl/test/operator/oputils_test.py b/odl/test/operator/oputils_test.py index <HASH>..<HASH> 100644 --- a/odl/test/operator/oputils_test.py +++ b/odl/test/operator/oputils_test.py @@ -171,12 +171,13 @@ def test_power_method_opnorm_nonsymm(): true_opnorm = 6 # Start vector (1, 1) is close to the w...
TST: update power method test. Give start guess to remove random fails.
py
diff --git a/ryu/controller/dpset.py b/ryu/controller/dpset.py index <HASH>..<HASH> 100644 --- a/ryu/controller/dpset.py +++ b/ryu/controller/dpset.py @@ -21,6 +21,7 @@ Planned to be replaced by ryu/topology. """ import logging +import warnings from ryu.base import app_manager from ryu.controller import event @...
Suppress warning UserWarning is always shown when ryu.controller.dpset.DPset is loaded. It is noisy.
py
diff --git a/furious/async.py b/furious/async.py index <HASH>..<HASH> 100644 --- a/furious/async.py +++ b/furious/async.py @@ -291,7 +291,12 @@ class Async(object): return Async(target, args, kwargs, **async_options) def _restart(self): - """Resets the executing Async and restarts it.""" + ...
Enhance Async._restart() docstr Fully explain the behavior of the Async._restart() method in the docstr.
py
diff --git a/manage.py b/manage.py index <HASH>..<HASH> 100644 --- a/manage.py +++ b/manage.py @@ -22,20 +22,10 @@ from __future__ import print_function from flask import current_app -from flask.ext.registry import RegistryProxy, ModuleAutoDiscoveryRegistry - -from invenio.ext.script import Manager, change_command_...
script: refactoring of manager loading * NOTE enables `inveniomanage clean` command.
py
diff --git a/ELiDE/ELiDE/board/pawn.py b/ELiDE/ELiDE/board/pawn.py index <HASH>..<HASH> 100644 --- a/ELiDE/ELiDE/board/pawn.py +++ b/ELiDE/ELiDE/board/pawn.py @@ -117,12 +117,12 @@ class Pawn(PawnSpot): new_spot = spot break else: - self.dispatch('on_drop', None) - ...
Fix a display error with recently repositioned pawns going back And tidy a bit
py
diff --git a/tests/test_app/tests.py b/tests/test_app/tests.py index <HASH>..<HASH> 100644 --- a/tests/test_app/tests.py +++ b/tests/test_app/tests.py @@ -1,5 +1,6 @@ from __future__ import unicode_literals +import time from contextlib import contextmanager from django.contrib.admin.tests import AdminSeleniumWeb...
Sleep a second when waiting for popup to close.
py
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/ligolw.py +++ b/glue/ligolw/ligolw.py @@ -611,7 +611,7 @@ class LIGOLWContentHandler(sax.handler.ContentHandler): Discard character data for all elements but Comments and Streams. """ - if self.current.tag...
Add support for Param and Time pcdata.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ install_requires = [ 'django >=1.6, <1.10', 'requests >=2.2, <2.13', # pyshp is fragile, we want only versions we have tested - 'pyshp ==1.2.3, ==1.2.10', + 'pyshp >==1.2.3, <1.2.11', '...
pip isn't happy about fixed pyshp versions in setup.py Former-commit-id: fbb<I>b<I>e<I>b<I>dfd<I>b6c<I>d<I>c0c<I>df
py
diff --git a/src/googleclouddebugger/gcp_hub_client.py b/src/googleclouddebugger/gcp_hub_client.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/gcp_hub_client.py +++ b/src/googleclouddebugger/gcp_hub_client.py @@ -477,12 +477,6 @@ class GcpHubClient(object): if source_context: debuggee['sourceC...
Remove extSourceContext from the Python GCP agent. It is not being used and it's the only agent that implements it. It inflates the size of the debuggee on the wire. ------------- Created by MOE: <URL>
py
diff --git a/dp_tornado/engine/scheduler_handler.py b/dp_tornado/engine/scheduler_handler.py index <HASH>..<HASH> 100644 --- a/dp_tornado/engine/scheduler_handler.py +++ b/dp_tornado/engine/scheduler_handler.py @@ -15,8 +15,11 @@ class SchedulerHandler(Handler): @tornado.web.asynchronous @tornado.gen.corout...
refactoring scheduler handler.
py
diff --git a/pew/pew.py b/pew/pew.py index <HASH>..<HASH> 100644 --- a/pew/pew.py +++ b/pew/pew.py @@ -439,7 +439,7 @@ def rename_cmd(argv): parser.add_argument('target') pargs = parser.parse_args(argv) copy_virtualenv_project(pargs.source, pargs.target) - rmvirtualenvs(pargs.source) + rmvirtualenv...
Fix trivial bug in rename_cmd (I should review more attentively the PR I receive, and ideally ask for new test cases to be added with each change)
py
diff --git a/leetcode/views/result.py b/leetcode/views/result.py index <HASH>..<HASH> 100644 --- a/leetcode/views/result.py +++ b/leetcode/views/result.py @@ -46,10 +46,14 @@ class ResultView(urwid.Frame): urwid.Frame.__init__(self, self.overlay, footer=footer) def _append_stdout_if_non_empty(self, list...
trimm output if it's too long
py
diff --git a/dosagelib/singleton.py b/dosagelib/singleton.py index <HASH>..<HASH> 100644 --- a/dosagelib/singleton.py +++ b/dosagelib/singleton.py @@ -32,7 +32,7 @@ class SingleInstance(object): """Create an exclusive lockfile or exit with an error and the given exit code.""" self.initialized...
Use realpath to detect symlinked instances.
py
diff --git a/filer/__init__.py b/filer/__init__.py index <HASH>..<HASH> 100644 --- a/filer/__init__.py +++ b/filer/__init__.py @@ -1,3 +1,3 @@ #-*- coding: utf-8 -*- # version string following pep-0396 and pep-0386 -__version__ = '0.9a4.dev1' # pragma: nocover +__version__ = '0.9b1' # pragma: nocover
version bump to <I>b1
py
diff --git a/codenerix/views.py b/codenerix/views.py index <HASH>..<HASH> 100644 --- a/codenerix/views.py +++ b/codenerix/views.py @@ -3222,7 +3222,7 @@ class GenModify(object): # Append to the general list of fields for group in formobj.get_groups(): for mainfield...
Improvement in get_context_json. Convert Decimal to float
py
diff --git a/gatspy/periodic/tests/test_lomb_scargle.py b/gatspy/periodic/tests/test_lomb_scargle.py index <HASH>..<HASH> 100644 --- a/gatspy/periodic/tests/test_lomb_scargle.py +++ b/gatspy/periodic/tests/test_lomb_scargle.py @@ -1,5 +1,5 @@ import numpy as np -from numpy.testing import assert_allclose, assert_, asse...
TST: fix unstable test in lomb_scargle
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,17 +1,21 @@ -try: - from setuptools import setup -except ImportError: - from distutils.core import setup +from setuptools import setup, find_packages config = { - 'description': "A suite of tools for automated s...
Packaging: Tweaks for packaging.
py
diff --git a/dialogos/models.py b/dialogos/models.py index <HASH>..<HASH> 100644 --- a/dialogos/models.py +++ b/dialogos/models.py @@ -8,22 +8,22 @@ from django.contrib.contenttypes.models import ContentType class Comment(models.Model): - + author = models.ForeignKey(settings.AUTH_USER_MODEL, null=True, r...
IPAddressField is deprecated: use GenericIPAddressField (#2)
py
diff --git a/skidmarks.py b/skidmarks.py index <HASH>..<HASH> 100644 --- a/skidmarks.py +++ b/skidmarks.py @@ -105,9 +105,10 @@ def auto_correlation(sequence): as the 'auto_correlation' it is less likely that the sequence is generated randomly. :param sequence: any iterable with at most 2 values that can...
change np.int to np.float to support autocorrelation in continous variables
py
diff --git a/girder/utility/acl_mixin.py b/girder/utility/acl_mixin.py index <HASH>..<HASH> 100644 --- a/girder/utility/acl_mixin.py +++ b/girder/utility/acl_mixin.py @@ -76,6 +76,10 @@ class AccessControlMixin(object): return self.model(self.resourceColl).hasAccess( resource, user=user, level=lev...
Add flag-related methods to AclMixin
py
diff --git a/gwpy/data/__init__.py b/gwpy/data/__init__.py index <HASH>..<HASH> 100644 --- a/gwpy/data/__init__.py +++ b/gwpy/data/__init__.py @@ -31,5 +31,6 @@ from glue.lal import (Cache, CacheEntry) from .array import * from .array2d import * from .series import * +import io __all__ = ['Array', 'Array2D', 'Ser...
data.io: import io to register readers/writers
py
diff --git a/github/PaginatedList.py b/github/PaginatedList.py index <HASH>..<HASH> 100644 --- a/github/PaginatedList.py +++ b/github/PaginatedList.py @@ -230,7 +230,7 @@ class PaginatedList(PaginatedListBase): if "link" in headers: linkHeaders = headers["link"].split(", ") for linkHe...
more flexible header splitting (#<I>)
py
diff --git a/napalm/junos/junos.py b/napalm/junos/junos.py index <HASH>..<HASH> 100644 --- a/napalm/junos/junos.py +++ b/napalm/junos/junos.py @@ -2383,7 +2383,9 @@ class JunOSDriver(NetworkDriver): if k == "vlan_name": _vlan_data["name"] = v if k == "interfaces": ...
Fix get_vlans issue of bridge-domain interface is None
py
diff --git a/github_release.py b/github_release.py index <HASH>..<HASH> 100755 --- a/github_release.py +++ b/github_release.py @@ -359,7 +359,16 @@ def gh_asset_upload(repo_name, tag_name, pattern, dry_run=False): upload_url = release["upload_url"] if "{" in upload_url: upload_url = upload_url[:uploa...
gh_asset_upload: Support list of patterns
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 @@ -2190,6 +2190,8 @@ class Dock(QtGui.QDockWidget, Ui_DockBase): self.postProcessingOutput[myKey] = [] self.postProcessingOutput[myKey].append( ...
fixes #<I> ... GRRRR that is why I prefere for loops :/
py
diff --git a/pycbc/waveform/spa_tmplt.py b/pycbc/waveform/spa_tmplt.py index <HASH>..<HASH> 100644 --- a/pycbc/waveform/spa_tmplt.py +++ b/pycbc/waveform/spa_tmplt.py @@ -139,7 +139,7 @@ def spa_distance(psd, mass1, mass2, lower_frequency_cutoff, snr=8): """ Return the distance at a given snr (default=8) of the SP...
non-integer index fix in spa distance (#<I>)
py
diff --git a/rebound/simulation.py b/rebound/simulation.py index <HASH>..<HASH> 100644 --- a/rebound/simulation.py +++ b/rebound/simulation.py @@ -712,6 +712,7 @@ class Simulation(Structure): """ if debug.integrator_package =="REBOUND": clibrebound.reb_integrate.restype = c_int + clib...
Fixed missing exact_finish_time functionality in python
py
diff --git a/modernrpc/conf/default_settings.py b/modernrpc/conf/default_settings.py index <HASH>..<HASH> 100644 --- a/modernrpc/conf/default_settings.py +++ b/modernrpc/conf/default_settings.py @@ -32,4 +32,5 @@ MODERNRPC_DOC_FORMAT = '' MODERNRPC_PY2_STR_TYPE = None MODERNRPC_PY2_STR_ENCODING = 'UTF-8' -MODERNRPC...
settings.MODERNRPC_LOG_EXCEPTIONS = True by default
py
diff --git a/odl/discr/grid.py b/odl/discr/grid.py index <HASH>..<HASH> 100644 --- a/odl/discr/grid.py +++ b/odl/discr/grid.py @@ -825,6 +825,11 @@ class RegularGrid(TensorGrid): """ return self._stride + @property + def cell_volume(self): + """The volume of a grid cell.""" + ret...
Add cell_volume to RegularGrid
py
diff --git a/multiqc/modules/ccs/ccs.py b/multiqc/modules/ccs/ccs.py index <HASH>..<HASH> 100644 --- a/multiqc/modules/ccs/ccs.py +++ b/multiqc/modules/ccs/ccs.py @@ -154,7 +154,12 @@ class MultiqcModule(BaseMultiqcModule): # Add filtere reasons (id starts with filtered_) and total passed for entry ...
👌 IMPROVE: Reformat code with black
py
diff --git a/sqlserver/tests/common.py b/sqlserver/tests/common.py index <HASH>..<HASH> 100644 --- a/sqlserver/tests/common.py +++ b/sqlserver/tests/common.py @@ -197,3 +197,4 @@ def assert_metrics(aggregator, expected_tags): aggregator.assert_metric(mname) aggregator.assert_service_check('sqlserver.can_c...
assert no duplicates in assert_metrics (#<I>)
py
diff --git a/eth/vm/forks/london/blocks.py b/eth/vm/forks/london/blocks.py index <HASH>..<HASH> 100644 --- a/eth/vm/forks/london/blocks.py +++ b/eth/vm/forks/london/blocks.py @@ -84,10 +84,10 @@ class LondonMiningHeader(rlp.Serializable, MiningHeaderAPI): class LondonBlockHeader(rlp.Serializable, BlockHeaderAPI): ...
Move base fee to end of full (mined) header
py
diff --git a/Lib/yubico/yubikey_neo_usb_hid.py b/Lib/yubico/yubikey_neo_usb_hid.py index <HASH>..<HASH> 100644 --- a/Lib/yubico/yubikey_neo_usb_hid.py +++ b/Lib/yubico/yubikey_neo_usb_hid.py @@ -83,6 +83,9 @@ class YubiKeyNEO_USBHIDCapabilities(yubikey_usb_hid.YubiKeyUSBHIDCapabilities): def have_configuration_slo...
Add have_nfc_ndef.
py
diff --git a/djangosaml2/backends.py b/djangosaml2/backends.py index <HASH>..<HASH> 100644 --- a/djangosaml2/backends.py +++ b/djangosaml2/backends.py @@ -208,6 +208,7 @@ class Saml2Backend(ModelBackend): } # Lookup existing user + # Lookup existing user user, created = None, False ...
Fixes creating new user with iexact lookup Currently this setup can lead to errors when saving a new user Resolves #<I>
py
diff --git a/respite/serializers/base.py b/respite/serializers/base.py index <HASH>..<HASH> 100644 --- a/respite/serializers/base.py +++ b/respite/serializers/base.py @@ -19,6 +19,8 @@ class Serializer(object): data types (e.g. lists, dictionaries, strings). """ + request = kwargs.get('reques...
Add request to model.serialize(), this is not backwards compatible, but kind of a hack
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -555,11 +555,14 @@ def get_composite_source_model(oqparam, in_memory=True): csm = source.CompositeSourceModel(gsim_lt, source...
Better check on duplicated sources [skip CI] Former-commit-id: <I>e<I>f<I>c<I>debfd8bbe<I>d<I>c<I>c0b<I>d
py
diff --git a/sphinx_tabs/test/testcase.py b/sphinx_tabs/test/testcase.py index <HASH>..<HASH> 100644 --- a/sphinx_tabs/test/testcase.py +++ b/sphinx_tabs/test/testcase.py @@ -105,7 +105,9 @@ class TestCase(unittest.TestCase): scripts = get_scripts(xml) def filter_scripts(x): - return x !=...
Fix script filtering in tests for Sphinx <I>
py
diff --git a/polysquarelinter/linter.py b/polysquarelinter/linter.py index <HASH>..<HASH> 100644 --- a/polysquarelinter/linter.py +++ b/polysquarelinter/linter.py @@ -37,13 +37,13 @@ from jobstamps import jobstamp import parmap +import polysquarelinter.valid_words_dictionary as valid_words_dictionary_helper + fro...
linter: Adjust importer order to satisfy I<I>
py
diff --git a/tofu/pathfile.py b/tofu/pathfile.py index <HASH>..<HASH> 100644 --- a/tofu/pathfile.py +++ b/tofu/pathfile.py @@ -1142,7 +1142,7 @@ def open_np_IdObj(LCls=None,LIdArr=None,LIdUSR=None): def _tryloadVes(Id, Ves=None): if not Ves is None: - if type(Ves) is TFG.Ves and Id.LObj['Ves']['SavePath'...
Update pathfile.py Update to get rid of TFG dependency in _tryloadVes() when Ves is not None
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ setuptools.setup( # Location where the package may be downloaded: download_url='https://pypi.org/project/harvesters/', # A list of required Python modules: - install_requires=['numpy'], # TODO...
Add genicam2 as a required module
py
diff --git a/pyemu/en.py b/pyemu/en.py index <HASH>..<HASH> 100644 --- a/pyemu/en.py +++ b/pyemu/en.py @@ -214,6 +214,7 @@ class Ensemble(pd.DataFrame): """ df = kwargs.pop("df") assert isinstance(df,pd.DataFrame) + df.columns = [c.lower() for c in df.columns] mean_values = kw...
cast column names to lower in ensemble from_dataframe
py
diff --git a/sseclient/__init__.py b/sseclient/__init__.py index <HASH>..<HASH> 100644 --- a/sseclient/__init__.py +++ b/sseclient/__init__.py @@ -43,20 +43,24 @@ class SSEClient(object): event into multiple HTTP chunks in the response. It is thus necessary to correctly stitch together consecutive res...
Issue #9 Decode later, to avoid decoding in the middle of utf8 sequence And to make sure we only split on \r and \n (Unicode splitlines splits on a number of other characters which is not in the SSE spec)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name="swimlane", author="Swimlane LLC", author_email="info@swimlane.com", - version="0.0.3", + version="0.0.4", url="https://github.com/Swimlane/sw-python-client", packages=fi...
Upping the version to <I>
py
diff --git a/contrail_api_cli/client.py b/contrail_api_cli/client.py index <HASH>..<HASH> 100644 --- a/contrail_api_cli/client.py +++ b/contrail_api_cli/client.py @@ -159,7 +159,7 @@ class ContrailAPISession(Session): result = self.post_json(self.make_url("/id-to-fqname"), data) result['fq_name'] = FQ...
Raise HTTPError with correct code
py
diff --git a/pandas/tools/plotting.py b/pandas/tools/plotting.py index <HASH>..<HASH> 100644 --- a/pandas/tools/plotting.py +++ b/pandas/tools/plotting.py @@ -1370,7 +1370,7 @@ class BarPlot(MPLPlot): if self.subplots: ax = self._get_ax(i) # self.axes[i] rect = bar_f(ax, ...
BUG: Log scale on bar chart hides bars GH<I>
py
diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index <HASH>..<HASH> 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -1,7 +1,6 @@ # Copyright 2017 Carlos Dauden - Tecnativa <carlos.daude...
[REF] Contract Mandate: remove unused objects in unit tests
py
diff --git a/fbchat_archive_parser/time.py b/fbchat_archive_parser/time.py index <HASH>..<HASH> 100644 --- a/fbchat_archive_parser/time.py +++ b/fbchat_archive_parser/time.py @@ -24,7 +24,7 @@ FACEBOOK_TIMESTAMP_FORMATS = [ ("hu_hu", "YYYY. MMMM D., H:mm"), # Hungarian ("it_it", "ddd...
fix timestamp nl_nl Tested with real data this time.
py
diff --git a/src/fileLoaders.py b/src/fileLoaders.py index <HASH>..<HASH> 100644 --- a/src/fileLoaders.py +++ b/src/fileLoaders.py @@ -173,8 +173,9 @@ class LocalLoader(BaseLoader): return 'local-file-system' class ParamLoader(BaseLoader): - def __init__(self, query_urls): + def __init__(self, specUrl...
added specUrl getter
py
diff --git a/troposphere/logs.py b/troposphere/logs.py index <HASH>..<HASH> 100644 --- a/troposphere/logs.py +++ b/troposphere/logs.py @@ -17,6 +17,7 @@ class LogGroup(AWSObject): resource_type = "AWS::Logs::LogGroup" props = { + 'LogGroupName': (basestring, False), 'RetentionInDays': (posit...
Add support for LogGroupName in Logs::LogGroup (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +from glob import glob +import subprocess import sys from setuptools import find_packages, setup @@ -48,6 +50,16 @@ else: with open('README.rst', 'r') as f: long_description = f.read() + +def compile_t...
setup.py: ship .mo files in releases Note that this makes it so that building the release files now depends on gettext.
py
diff --git a/pyemma/coordinates/transform/transformer.py b/pyemma/coordinates/transform/transformer.py index <HASH>..<HASH> 100644 --- a/pyemma/coordinates/transform/transformer.py +++ b/pyemma/coordinates/transform/transformer.py @@ -619,8 +619,8 @@ class Transformer(object): last_itraj = -1 t = 0 #...
[coor/transformer] added description to progressbar in get_output
py
diff --git a/tests/unit/grains/test_core.py b/tests/unit/grains/test_core.py index <HASH>..<HASH> 100644 --- a/tests/unit/grains/test_core.py +++ b/tests/unit/grains/test_core.py @@ -1313,7 +1313,6 @@ class CoreGrainsTestCase(TestCase, LoaderModuleMockMixin): @skipIf(not salt.utils.platform.is_linux(), "System is ...
Do not need this patch for salt.utils.path
py
diff --git a/openquake/server/views.py b/openquake/server/views.py index <HASH>..<HASH> 100644 --- a/openquake/server/views.py +++ b/openquake/server/views.py @@ -399,9 +399,11 @@ def calc_abort(request, calc_id): message = {'error': 'Job %s is not running' % job.id} return HttpResponse(content=json.d...
Only the owner or superuser can abort a calculation (bypass ACL check)
py
diff --git a/bmds/models/base.py b/bmds/models/base.py index <HASH>..<HASH> 100644 --- a/bmds/models/base.py +++ b/bmds/models/base.py @@ -72,7 +72,13 @@ class BMDModel(object): timeout=settings.BMDS_MODEL_TIMEOUT_SECONDS ).call() except Exception as e: - logger.error('...
log d file output if it exsts instead of just filename
py
diff --git a/sos/plugins/zfs.py b/sos/plugins/zfs.py index <HASH>..<HASH> 100644 --- a/sos/plugins/zfs.py +++ b/sos/plugins/zfs.py @@ -13,24 +13,24 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -from sos.plugins import Plugin, UbuntuPlugin, DebianPlugin +from sos.plugins import Plugin, RedHatPlu...
[zfs] Add support for zfsonlinux and rhel This add support for the official OpenZFS port for Linux <URL>
py
diff --git a/simplesqlite/core.py b/simplesqlite/core.py index <HASH>..<HASH> 100644 --- a/simplesqlite/core.py +++ b/simplesqlite/core.py @@ -294,16 +294,9 @@ class SimpleSQLite(object): :raises simplesqlite.NullDatabaseConnectionError: |raises_check_connection| :raises simplesqlite.Oper...
Change to use same processing with insert query regardless of number of records
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ # Always prefer setuptools over distutils -from setuptools import setup +from setuptools import setup, find_packages # To use a consistent encoding from codecs import open as opn from os import path @@ -26,7 +...
Setup.py updated to include all the subpackages and data sets
py
diff --git a/frontend/submission_manager.py b/frontend/submission_manager.py index <HASH>..<HASH> 100644 --- a/frontend/submission_manager.py +++ b/frontend/submission_manager.py @@ -192,7 +192,8 @@ class SubmissionGitSaver (threading.Thread): tar.close() self.git.add('--all','.') - ...
Add more information when commiting to submission repo
py
diff --git a/src/sos/Julia/kernel.py b/src/sos/Julia/kernel.py index <HASH>..<HASH> 100644 --- a/src/sos/Julia/kernel.py +++ b/src/sos/Julia/kernel.py @@ -165,6 +165,9 @@ end function has_row_names(df) return !(names(df)[1]==collect(1:size(df)[1])) end +function has_col_names(df) + return !(names(df)[2]==collect(...
add a function to julia to check if an array-like type of data has col name
py
diff --git a/django_productline/features/staticfiles/settings.py b/django_productline/features/staticfiles/settings.py index <HASH>..<HASH> 100644 --- a/django_productline/features/staticfiles/settings.py +++ b/django_productline/features/staticfiles/settings.py @@ -3,12 +3,6 @@ def refine_INSTALLED_APPS(original): ...
STATIC_ROOT moved to djpl.settings.STATIC_ROOT = None; STATIC_ROOT is refined by djpl-product-data or djpl-container-data;
py
diff --git a/tests/manual_performance.py b/tests/manual_performance.py index <HASH>..<HASH> 100644 --- a/tests/manual_performance.py +++ b/tests/manual_performance.py @@ -72,6 +72,7 @@ def time_one(args, test, queue): with Timer() as t: func(filepath) queue.put(t.msecs) + queue.put(resource.getrus...
performance: fix wrong RAM measurement It was getting the max RAM usage of the children, and not the max RAM usage of the process executing the test
py
diff --git a/bootstrap3/templatetags/bootstrap3.py b/bootstrap3/templatetags/bootstrap3.py index <HASH>..<HASH> 100644 --- a/bootstrap3/templatetags/bootstrap3.py +++ b/bootstrap3/templatetags/bootstrap3.py @@ -432,7 +432,7 @@ def bootstrap_field(*args, **kwargs): set_disabled When set to ``True...
Documentation fix: set_disabled refers to required attribute.
py
diff --git a/marathon/models/app.py b/marathon/models/app.py index <HASH>..<HASH> 100644 --- a/marathon/models/app.py +++ b/marathon/models/app.py @@ -46,7 +46,7 @@ class MarathonApp(MarathonResource): self.id = id self.instances = instances self.mem = mem - self.ports = ports + ...
Fix bug whereby a random port is allocated on app creation if "ports" is not passed
py
diff --git a/yadi/types.py b/yadi/types.py index <HASH>..<HASH> 100644 --- a/yadi/types.py +++ b/yadi/types.py @@ -1,11 +1,9 @@ -import typing - from yadi import bean_factories -class YadiMeta(typing.TypingMeta, type): - def __new__(cls, name, bases, namespace): - return super().__new__(cls, name, bases,...
Maybe this time Travis will be happy.
py
diff --git a/pypuppetdb/utils.py b/pypuppetdb/utils.py index <HASH>..<HASH> 100644 --- a/pypuppetdb/utils.py +++ b/pypuppetdb/utils.py @@ -50,4 +50,5 @@ def versioncmp(v1, v2): try: return cmp(normalize(v1), normalize(v2)) except NameError: - return (v1 > v2) - (v1 < v2) + return (norma...
pypuppetdb/utils: Adding the normalization wrappers in the Python <I> code
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ requirements = [ 'numexpr>=2.1', 'numpy>=1.7,<1.9', 'scipy>=0.12,<0.14', - 'tables>=3.0' + 'tables>=3.0,<3.1.1' ] test_requirements = [
Fixed minor bug in run-emase script
py