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 @@ -27,7 +27,7 @@ install_flask_requires = [ ] install_sanic_requires = [ - "sanic>=19.9.0,<20", + "sanic>=20.3.0", ] install_webob_requires = [
Update Sanic dependency to support <I> and above (#<I>)
py
diff --git a/py3status/modules/backlight.py b/py3status/modules/backlight.py index <HASH>..<HASH> 100644 --- a/py3status/modules/backlight.py +++ b/py3status/modules/backlight.py @@ -80,7 +80,14 @@ class Py3status: if self.device is None: raise Exception(STRING_NOT_AVAILABLE) - self.xback...
backlight: better xbacklight detection
py
diff --git a/utils/qextract/setup.py b/utils/qextract/setup.py index <HASH>..<HASH> 100644 --- a/utils/qextract/setup.py +++ b/utils/qextract/setup.py @@ -1,7 +1,7 @@ from setuptools import setup setup(name='qextract', - version='0.0.7', + version='0.0.8', description='Extract different types of ph...
bumped qextract version number
py
diff --git a/datatableview/helpers.py b/datatableview/helpers.py index <HASH>..<HASH> 100644 --- a/datatableview/helpers.py +++ b/datatableview/helpers.py @@ -193,12 +193,12 @@ def make_xeditable(instance=None, extra_attrs=[], *args, **kwargs): # Assign default values where they are not provided field_name ...
Oops, NameError on refactor
py
diff --git a/tests/integration_test.py b/tests/integration_test.py index <HASH>..<HASH> 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -149,7 +149,15 @@ class TestCreateContainerWithBinds(BaseTestCase): ['ls', mount_dest], volumes={mount_dest: {}} ) ...
Fix integration test regression The test for starting a container with volume binds hadn't been updated to use the new dictionary structure for the `binds` argument.
py
diff --git a/config_resolver.py b/config_resolver.py index <HASH>..<HASH> 100644 --- a/config_resolver.py +++ b/config_resolver.py @@ -265,12 +265,3 @@ class SecuredConfig(Config): return False, "File is not secure enough. Change it's mode to 600" else: return True, '' - - def load...
Removed unused override.
py
diff --git a/tests/test_resource.py b/tests/test_resource.py index <HASH>..<HASH> 100644 --- a/tests/test_resource.py +++ b/tests/test_resource.py @@ -15,3 +15,14 @@ def test_validate_resource(): assert User.__name__ == 'User' assert User._validations['id'] == {'re': r'[-0-9a-zA-Z]{36}', 'doc': 'Docu...
Test validation decorator on a method.
py
diff --git a/kconfiglib.py b/kconfiglib.py index <HASH>..<HASH> 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -456,14 +456,8 @@ module being run by default, as well as installation directories. If the KCONFIG_FUNCTIONS environment variable is set, it gives a different module name to use instead of 'kconfigfunctio...
Fix user-defined preprocessor function example code The functions must be defined before they can be put into 'functions'.
py
diff --git a/salt/modules/logmod.py b/salt/modules/logmod.py index <HASH>..<HASH> 100644 --- a/salt/modules/logmod.py +++ b/salt/modules/logmod.py @@ -10,7 +10,7 @@ It comes very handy when debugging complex Jinja templates, for example: .. code-block:: jinja {%- for var in range(10) %} - {%- do salt.log.i...
Update jinja example to recommended syntax
py
diff --git a/RAPIDpy/dataset.py b/RAPIDpy/dataset.py index <HASH>..<HASH> 100644 --- a/RAPIDpy/dataset.py +++ b/RAPIDpy/dataset.py @@ -10,6 +10,7 @@ from csv import writer as csv_writer import datetime from netCDF4 import Dataset, num2date +#from cftime import num2pydate import numpy as np from numpy.ma import is...
Modifies dataset.py to handle new behavior in cftime and pandas libraries. (#<I>)
py
diff --git a/salt/runners/state.py b/salt/runners/state.py index <HASH>..<HASH> 100644 --- a/salt/runners/state.py +++ b/salt/runners/state.py @@ -47,7 +47,8 @@ def sls(mods, env='base', test=None, exclude=None): ''' __opts__['file_client'] = 'local' minion = salt.minion.MasterMinion(__opts__) - ret =...
Set up data correctly for the highstate outputter
py
diff --git a/holoviews/plotting/renderer.py b/holoviews/plotting/renderer.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/renderer.py +++ b/holoviews/plotting/renderer.py @@ -148,6 +148,7 @@ class Renderer(Exporter): dmaps = obj.traverse(lambda x: x, specs=[DynamicMap]) for dmap in dmaps: ...
Added comment to Renderer dynamic handling
py
diff --git a/microcosm_flask/conventions/encoding.py b/microcosm_flask/conventions/encoding.py index <HASH>..<HASH> 100644 --- a/microcosm_flask/conventions/encoding.py +++ b/microcosm_flask/conventions/encoding.py @@ -89,8 +89,13 @@ def make_response(response_data, status_code=200, headers=None): # swagger do...
default Content-Type header in response as application/json
py
diff --git a/xmantissa/test/test_fulltext.py b/xmantissa/test/test_fulltext.py index <HASH>..<HASH> 100644 --- a/xmantissa/test/test_fulltext.py +++ b/xmantissa/test/test_fulltext.py @@ -1,4 +1,4 @@ - +import gc from zope.interface import implements @@ -747,6 +747,7 @@ class PyLuceneObjectLifetimeTestCase(unittest...
Actually spin the GC so this test works on PyPy.
py
diff --git a/quantecon/util/tests/test_notebooks.py b/quantecon/util/tests/test_notebooks.py index <HASH>..<HASH> 100644 --- a/quantecon/util/tests/test_notebooks.py +++ b/quantecon/util/tests/test_notebooks.py @@ -18,15 +18,15 @@ BRANCH = "master" class TestNotebookUtils(unittest.TestCase): def test_fetch_nb_d...
fix issue with tabs introduced by editor
py
diff --git a/filer/admin/permissionadmin.py b/filer/admin/permissionadmin.py index <HASH>..<HASH> 100644 --- a/filer/admin/permissionadmin.py +++ b/filer/admin/permissionadmin.py @@ -15,6 +15,8 @@ class PermissionAdmin(admin.ModelAdmin): ), ) raw_id_fields = ('user', 'group',) + list_filter = ['us...
Update filer/admin/permissionadmin.py Added some admin options to the folder permissions to improve usability.
py
diff --git a/djstripe/migrations/0001_initial.py b/djstripe/migrations/0001_initial.py index <HASH>..<HASH> 100644 --- a/djstripe/migrations/0001_initial.py +++ b/djstripe/migrations/0001_initial.py @@ -569,7 +569,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.BigAutoFi...
Fix a bad reference to StripeJSONField in initial migration
py
diff --git a/instaloader.py b/instaloader.py index <HASH>..<HASH> 100755 --- a/instaloader.py +++ b/instaloader.py @@ -670,8 +670,16 @@ def download_profiles(profilelist: List[str], username: Optional[str] = None, pa # Iterate through targets list and download them for target in targets: ...
Retry download anonymously if profile not exists In case you are blocked by a public profile which you intend to download, the server responds as if the profile would not exist. Now in this case, we retry the download without using an anonymous session.
py
diff --git a/andes/models/exciter/ac8b.py b/andes/models/exciter/ac8b.py index <HASH>..<HASH> 100644 --- a/andes/models/exciter/ac8b.py +++ b/andes/models/exciter/ac8b.py @@ -200,10 +200,6 @@ class AC8BModel(ExcBase): tex_name=r'V_{EMAX}', v_str='safe_di...
Cleaned `AC8B` code.
py
diff --git a/tests/UnitTests/test_IRForeignMultiLinkField.py b/tests/UnitTests/test_IRForeignMultiLinkField.py index <HASH>..<HASH> 100755 --- a/tests/UnitTests/test_IRForeignMultiLinkField.py +++ b/tests/UnitTests/test_IRForeignMultiLinkField.py @@ -352,6 +352,10 @@ class TestIRForeignMultiLinkField(object): ...
Add to test that ids returned match
py
diff --git a/openhtf/core/test_state.py b/openhtf/core/test_state.py index <HASH>..<HASH> 100644 --- a/openhtf/core/test_state.py +++ b/openhtf/core/test_state.py @@ -304,7 +304,7 @@ class TestState(util.SubscribableStateMixin): # openhtf.util.threads.ThreadTerminationError gets str'd directly. code =...
Fix indent for call to add_outcome_details (#<I>)
py
diff --git a/openpnm/utils/_misc.py b/openpnm/utils/_misc.py index <HASH>..<HASH> 100644 --- a/openpnm/utils/_misc.py +++ b/openpnm/utils/_misc.py @@ -632,3 +632,16 @@ def get_model_collection(collection, regen_mode=None, domain=None): if domain: v['domain'] = domain return d + + +def _is_tra...
Added _is_transient method to utils
py
diff --git a/py/test/selenium/webdriver/common/driver_element_finding_tests.py b/py/test/selenium/webdriver/common/driver_element_finding_tests.py index <HASH>..<HASH> 100755 --- a/py/test/selenium/webdriver/common/driver_element_finding_tests.py +++ b/py/test/selenium/webdriver/common/driver_element_finding_tests.py @...
Fix and re-enable finding tests against a xml document
py
diff --git a/aiohttp/web/urldispatch.py b/aiohttp/web/urldispatch.py index <HASH>..<HASH> 100644 --- a/aiohttp/web/urldispatch.py +++ b/aiohttp/web/urldispatch.py @@ -15,7 +15,7 @@ class UrlDispatch(AbstractRouter): GOOD = r'[^{}/]+' PLAIN = re.compile('^'+GOOD+'$') - METHODS = {'POST', 'GET', 'PUT', 'DE...
Add OPTIONS method to UrlDispatch implementation
py
diff --git a/nose_leak_detector/plugin.py b/nose_leak_detector/plugin.py index <HASH>..<HASH> 100644 --- a/nose_leak_detector/plugin.py +++ b/nose_leak_detector/plugin.py @@ -108,9 +108,9 @@ class LeakDetectorPlugin(Plugin): help="") parser.add_option("--leak-detector-ignore-patter...
Avoid returning iterator in python3.
py
diff --git a/distribution/bin/check-licenses.py b/distribution/bin/check-licenses.py index <HASH>..<HASH> 100755 --- a/distribution/bin/check-licenses.py +++ b/distribution/bin/check-licenses.py @@ -323,8 +323,8 @@ def check_licenses(license_yaml, dependency_reports_root): # Build registered license dictionary. ...
Open the licenses.yaml with an explicit encoding (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -190,6 +190,10 @@ def run_setup(extensions): 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', + 'Program...
Update supported languages, platforms in setup.py
py
diff --git a/dbarray/tests/run.py b/dbarray/tests/run.py index <HASH>..<HASH> 100644 --- a/dbarray/tests/run.py +++ b/dbarray/tests/run.py @@ -12,14 +12,9 @@ settings.configure( 'HOST': 'localhost' } }, - INSTALLED_APPS=( - 'dbarray.tests', - # 'django.contrib.auth', - ...
Remove commented code [ci skip].
py
diff --git a/pdfminer/utils.py b/pdfminer/utils.py index <HASH>..<HASH> 100644 --- a/pdfminer/utils.py +++ b/pdfminer/utils.py @@ -106,7 +106,7 @@ def fsplit(pred, objs): def drange(v0, v1, d): """Returns a discrete range.""" assert v0 < v1 - return xrange(int(v0)/d, int(v1+d-1)/d) + return xrange(int(...
fixed: crash due to small layout elements (thanks to hsoft)
py
diff --git a/numina/array/display/polfit_residuals.py b/numina/array/display/polfit_residuals.py index <HASH>..<HASH> 100644 --- a/numina/array/display/polfit_residuals.py +++ b/numina/array/display/polfit_residuals.py @@ -265,21 +265,12 @@ def polfit_residuals( marker='x', s=srejected, color=cr...
Leave legend in plots to float around.
py
diff --git a/pub/pub.py b/pub/pub.py index <HASH>..<HASH> 100644 --- a/pub/pub.py +++ b/pub/pub.py @@ -1,3 +1,5 @@ +import sys + from sys import exit, stdout from os import getcwdu from imp import load_source @@ -34,7 +36,10 @@ def main(options): exit(127) try: + #prevent python from writing p...
prevent python from dropping a pubfilec turd
py
diff --git a/scraperwiki/sqlite.py b/scraperwiki/sqlite.py index <HASH>..<HASH> 100644 --- a/scraperwiki/sqlite.py +++ b/scraperwiki/sqlite.py @@ -37,7 +37,7 @@ class _Buffer(object): buffered_saves = [] buffered_table = None - unique_keys = [] + unique_keys = None flushing = False # time ...
Initialize _Buffer.unique_keys to None
py
diff --git a/galpy/potential/amuse.py b/galpy/potential/amuse.py index <HASH>..<HASH> 100644 --- a/galpy/potential/amuse.py +++ b/galpy/potential/amuse.py @@ -1,18 +1,13 @@ # galpy.potential.amuse: AMUSE representation of galpy potentials -# amuse imports first -from .. import potential -from ..util import bovy_conver...
Switch to standard order of imports and obtain amuse imports from the correct submodules
py
diff --git a/test_retry.py b/test_retry.py index <HASH>..<HASH> 100644 --- a/test_retry.py +++ b/test_retry.py @@ -93,7 +93,7 @@ def test_successful_thread(): @retry.retry(timeout=1, success=lambda x: x == 3) def f(): - nonlocal retryed + global retryed retryed += 1 return re...
Replace 'nonlocal' by 'global' for python <I> compatibility
py
diff --git a/src/pytwitcherapi/chat.py b/src/pytwitcherapi/chat.py index <HASH>..<HASH> 100644 --- a/src/pytwitcherapi/chat.py +++ b/src/pytwitcherapi/chat.py @@ -91,14 +91,13 @@ def add_serverconnection_methods(cls): 'stats', 'time', 'topic', 'trace', 'user', 'userhost', 'users', 'versi...
Fix flake check and defining method with exec
py
diff --git a/respite/views/views.py b/respite/views/views.py index <HASH>..<HASH> 100644 --- a/respite/views/views.py +++ b/respite/views/views.py @@ -136,6 +136,7 @@ class Views(object): return HttpResponse(status=406) if template: + if prefix_template_path: templa...
Re-add a newline that removed in last commit
py
diff --git a/tests/test_inflow.py b/tests/test_inflow.py index <HASH>..<HASH> 100644 --- a/tests/test_inflow.py +++ b/tests/test_inflow.py @@ -8,7 +8,6 @@ ## from datetime import datetime -from filecmp import cmp as fcmp from netCDF4 import Dataset from nose.tools import ok_ from numpy.testing import assert_almo...
removed fcmp as unused
py
diff --git a/dvc/stage.py b/dvc/stage.py index <HASH>..<HASH> 100644 --- a/dvc/stage.py +++ b/dvc/stage.py @@ -39,12 +39,7 @@ class OutputAlreadyTrackedError(OutputError): super(OutputAlreadyTrackedError, self).__init__(path, 'already tracked by scm(e.g. git)') -class Direction(object): - DIRECTION_TYPE...
Refactoring: reduce LOC in a file by getting rid of Direction class
py
diff --git a/tcex/profile/profile.py b/tcex/profile/profile.py index <HASH>..<HASH> 100644 --- a/tcex/profile/profile.py +++ b/tcex/profile/profile.py @@ -5,8 +5,8 @@ import logging import os import re import sys +from collections import OrderedDict from random import randint -from collection import OrderedDict ...
APP-<I> - added check for raw.json output variable.
py
diff --git a/pluggy/hooks.py b/pluggy/hooks.py index <HASH>..<HASH> 100644 --- a/pluggy/hooks.py +++ b/pluggy/hooks.py @@ -234,7 +234,7 @@ class _HookCaller(object): raise ValueError("plugin %r not found" % (plugin,)) def get_hookimpls(self): - return self._wrappers + self._nonwrappers + ...
Inverted order, needed for calls.
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -161,6 +161,9 @@ def weighted_disagg(close, cmaker, g_by_z, iml2, eps3, s, bins, epsstar): :retur...
Added comment [ci skip]
py
diff --git a/examples/glyphs/sprint.py b/examples/glyphs/sprint.py index <HASH>..<HASH> 100644 --- a/examples/glyphs/sprint.py +++ b/examples/glyphs/sprint.py @@ -70,7 +70,7 @@ xaxis = LinearAxis(ticker=xticker, axis_line_color=None, major_tick_line_color=N plot.add_layout(xaxis, "below") xgrid = Grid(dimension=0, ti...
glyphs/sprint: changed y-axis interval to <I>
py
diff --git a/montblanc/solvers/__init__.py b/montblanc/solvers/__init__.py index <HASH>..<HASH> 100644 --- a/montblanc/solvers/__init__.py +++ b/montblanc/solvers/__init__.py @@ -24,7 +24,7 @@ from montblanc.solvers.mb_cuda_solver import MontblancCUDASolver def copy_solver(src_slvr, dest_slvr, safe=False): """ ...
Fix incorrect logic in copy_solver
py
diff --git a/salt/client.py b/salt/client.py index <HASH>..<HASH> 100644 --- a/salt/client.py +++ b/salt/client.py @@ -199,6 +199,35 @@ class LocalClient(object): for fn_ret in self.get_iter_returns(pub_data['jid'], pub_data['minions'], timeout): + if not fn_ret: + ...
Add non-blocking iterative cmd method to local client
py
diff --git a/dwave/system/testing.py b/dwave/system/testing.py index <HASH>..<HASH> 100644 --- a/dwave/system/testing.py +++ b/dwave/system/testing.py @@ -69,6 +69,18 @@ class MockDWaveSampler(dimod.Sampler, dimod.Structured): properties['annealing_time_range'] = [1, 2000] properties['num_qubits'] = l...
Add to MockDWaveSampler some properties
py
diff --git a/locksmith/hub/dataviews.py b/locksmith/hub/dataviews.py index <HASH>..<HASH> 100644 --- a/locksmith/hub/dataviews.py +++ b/locksmith/hub/dataviews.py @@ -368,7 +368,12 @@ def keys(request): columns = ['key', 'email', 'calls', 'latest_call', 'issued_on'] qry = Key.objects if sSearch not in (N...
Added fields to the key search view.
py
diff --git a/textplot/text.py b/textplot/text.py index <HASH>..<HASH> 100644 --- a/textplot/text.py +++ b/textplot/text.py @@ -1,6 +1,7 @@ import requests +import datetime import re import textplot.utils as utils import matplotlib.pyplot as plt @@ -132,7 +133,7 @@ class Text(object): # Compute ranks ...
Use np.minimum() instead of the bespoke code, which gives a ~<I>x performance boost.
py
diff --git a/examples/send.py b/examples/send.py index <HASH>..<HASH> 100644 --- a/examples/send.py +++ b/examples/send.py @@ -32,7 +32,7 @@ try: raise ValueError("No EventHubs URL supplied.") client = EventHubClient(ADDRESS, debug=False, username=USER, password=KEY) - sender = client.add_sender(part...
Updated send example to match recv Fix for issue #<I>
py
diff --git a/pyqode/python/folding.py b/pyqode/python/folding.py index <HASH>..<HASH> 100644 --- a/pyqode/python/folding.py +++ b/pyqode/python/folding.py @@ -13,9 +13,11 @@ class PythonFoldDetector(IndentFoldDetector): prev_lvl = TextBlockHelper.get_fold_lvl(prev_block) # cancel false indentation, in...
Fix bug with end of line comments which prevent detection of new fold level
py
diff --git a/labware/grid.py b/labware/grid.py index <HASH>..<HASH> 100644 --- a/labware/grid.py +++ b/labware/grid.py @@ -125,6 +125,7 @@ class GridContainer(): max_vol = 0 _custom_wells = None + _name = None """ A dict containing tuples of zero-indexed child coordinates. @@ -226,6 +227,10 @...
Containers class name<->loadable type name.
py
diff --git a/bindings/python/libproxy.py b/bindings/python/libproxy.py index <HASH>..<HASH> 100644 --- a/bindings/python/libproxy.py +++ b/bindings/python/libproxy.py @@ -40,8 +40,12 @@ if platform.system() == "Windows": else: _libc = _load("c", 6) +_libc.free.argtypes = ctypes.c_void_p, + # Load libproxy _li...
python: Avoid a crash on <I>-bit systems Annotate the return type of px_proxy_factory_new() to be void *, as otherwise int is assumed. This works fine on <I>-bit systems, where void * and int are the same width, but is invalid on <I>-bit (Linux) systems. Additionally, annotate the argument type of free() and px_proxy...
py
diff --git a/enoslib/service/locust/locust.py b/enoslib/service/locust/locust.py index <HASH>..<HASH> 100644 --- a/enoslib/service/locust/locust.py +++ b/enoslib/service/locust/locust.py @@ -183,7 +183,7 @@ class Locust(Service): We backup the remote working dir of the master. """ _backup_dir...
locust: save worker remote dir as well
py
diff --git a/hvac/v1/__init__.py b/hvac/v1/__init__.py index <HASH>..<HASH> 100644 --- a/hvac/v1/__init__.py +++ b/hvac/v1/__init__.py @@ -5,6 +5,7 @@ from base64 import b64encode try: import hcl + has_hcl_parser = True except ImportError: has_hcl_parser = False @@ -136,14 +137,14 @@ class Client(obj...
E<I> indentation is not a multiple of four
py
diff --git a/masonite/snippets/auth/controllers/RegisterController.py b/masonite/snippets/auth/controllers/RegisterController.py index <HASH>..<HASH> 100644 --- a/masonite/snippets/auth/controllers/RegisterController.py +++ b/masonite/snippets/auth/controllers/RegisterController.py @@ -45,7 +45,7 @@ class RegisterContr...
fixed reister controller to register email by default
py
diff --git a/oct2py/session.py b/oct2py/session.py index <HASH>..<HASH> 100644 --- a/oct2py/session.py +++ b/oct2py/session.py @@ -437,7 +437,7 @@ class Oct2Py(object): if name == 'keyboard': return 'Built-in Function: keyboard ()' exist = self._eval('exist {0}'.format(name), log=False,...
Fix missing rstrip in eval
py
diff --git a/django_cron/__init__.py b/django_cron/__init__.py index <HASH>..<HASH> 100644 --- a/django_cron/__init__.py +++ b/django_cron/__init__.py @@ -279,6 +279,7 @@ class CronJobManager(object): cron_job_class.__name__, self.cron_job.code, ) +...
Fix for issue #<I>. Cronjob is run every time runcrons is called
py
diff --git a/raiden/resolver/client.py b/raiden/resolver/client.py index <HASH>..<HASH> 100644 --- a/raiden/resolver/client.py +++ b/raiden/resolver/client.py @@ -15,7 +15,12 @@ def reveal_secret_with_resolver( if 'resolver_endpoint' not in raiden.config: return False + current_state = raiden.wal.sta...
Add Token to hash resolver request
py
diff --git a/satpy/scene.py b/satpy/scene.py index <HASH>..<HASH> 100644 --- a/satpy/scene.py +++ b/satpy/scene.py @@ -883,7 +883,8 @@ class Scene(MetadataObject): """Compute all the composites contained in `requirements`.""" if nodes is None: required_nodes = self.wishlist - set(self.dat...
undo flake8/Pycharm changes to other code parts
py
diff --git a/bugsy/bugsy.py b/bugsy/bugsy.py index <HASH>..<HASH> 100644 --- a/bugsy/bugsy.py +++ b/bugsy/bugsy.py @@ -83,7 +83,7 @@ class Bugsy(object): >>> bugzilla.put(bug) """ - if (not self.username or not self.password) or not self.token: + if not self.token: rai...
Remove unneeded part of login conditional
py
diff --git a/ardrone/navdata.py b/ardrone/navdata.py index <HASH>..<HASH> 100644 --- a/ardrone/navdata.py +++ b/ardrone/navdata.py @@ -58,7 +58,7 @@ def decode(packet): offset += struct.calcsize('c') if id_nr == 0: - values = struct.unpack_from('IIfffIfffI', ''.join(values)) + ...
use bytes with struct.unpack
py
diff --git a/tests/test_gau.py b/tests/test_gau.py index <HASH>..<HASH> 100644 --- a/tests/test_gau.py +++ b/tests/test_gau.py @@ -279,6 +279,9 @@ def test_dynamic(): g.ndim, rstate=rstate) dsampler.run_nested(print_progress=...
add a test of explicitely adding a batch (to detect errror in prev commit)
py
diff --git a/moto/s3/models.py b/moto/s3/models.py index <HASH>..<HASH> 100644 --- a/moto/s3/models.py +++ b/moto/s3/models.py @@ -58,7 +58,7 @@ class FakeMultipart(object): def __init__(self, key_name): self.key_name = key_name self.parts = {} - self.id = base64.b64encode(os.urandom(43))....
remove plus sign from id because it doesn't get parsed correctly in query string
py
diff --git a/openhtf/output/callbacks/mfg_inspector.py b/openhtf/output/callbacks/mfg_inspector.py index <HASH>..<HASH> 100644 --- a/openhtf/output/callbacks/mfg_inspector.py +++ b/openhtf/output/callbacks/mfg_inspector.py @@ -43,11 +43,15 @@ def _send_mfg_inspector_request(envelope_data, credentials, destination_url):...
Better error handling and display of error message (#<I>) Correctly classifying <I> errors as InvalidTestRunError's so they are not re-tried. Better support and display of the new message field being returned by backend.
py
diff --git a/src/collectors/mountstats/mountstats.py b/src/collectors/mountstats/mountstats.py index <HASH>..<HASH> 100755 --- a/src/collectors/mountstats/mountstats.py +++ b/src/collectors/mountstats/mountstats.py @@ -80,7 +80,7 @@ class MountStatsCollector(diamond.collector.Collector): def get_default_config(sel...
removed auto-enable for mountstats collector
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,7 +60,7 @@ setup( license = 'New BSD', url = 'https://github.com/mitogen-hq/mitogen/', packages = find_packages(exclude=['tests', 'examples']), - python_requires='>=2.4, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*...
build: Remove declared support for Python<<I> Master and the <I>.x branch have never supported these versions, but we didn't update the metadata.
py
diff --git a/projects/sequence_prediction/discrete_sequences/lstm/lstm_scalar_encoding_capacity.py b/projects/sequence_prediction/discrete_sequences/lstm/lstm_scalar_encoding_capacity.py index <HASH>..<HASH> 100644 --- a/projects/sequence_prediction/discrete_sequences/lstm/lstm_scalar_encoding_capacity.py +++ b/project...
Change params of lstm encoding capacity experiment
py
diff --git a/datajoint/erd.py b/datajoint/erd.py index <HASH>..<HASH> 100644 --- a/datajoint/erd.py +++ b/datajoint/erd.py @@ -208,8 +208,7 @@ else: graph = nx.DiGraph(self).subgraph(nodes) nx.set_node_attributes(graph, 'node_type', {n: _get_tier(n) for n in graph}) # relabel node...
correction for excluding the IPython temporal variable name `_` in ERD
py
diff --git a/lore/pipelines/holdout.py b/lore/pipelines/holdout.py index <HASH>..<HASH> 100644 --- a/lore/pipelines/holdout.py +++ b/lore/pipelines/holdout.py @@ -93,7 +93,7 @@ class Base(object): if self.multiprocessing: pool = multiprocessing.Pool(self.workers) ...
small fix for multiprocess encoders (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -37,11 +37,11 @@ class PyTest(TestCommand): version = '0.3' setup( - name = 'PyIntervalTree', - version = version, + name='PyIntervalTree', + version=version, packages=['intervaltree'], - install_requir...
PEP8 in setup() function call
py
diff --git a/src/postmark/django_backend.py b/src/postmark/django_backend.py index <HASH>..<HASH> 100644 --- a/src/postmark/django_backend.py +++ b/src/postmark/django_backend.py @@ -37,8 +37,20 @@ class EmailBackend(BaseEmailBackend): return False try: for recipient in me...
Added simple attempt at Django multi-part email handling
py
diff --git a/wordfreq/mecab.py b/wordfreq/mecab.py index <HASH>..<HASH> 100644 --- a/wordfreq/mecab.py +++ b/wordfreq/mecab.py @@ -14,8 +14,6 @@ def mecab_tokenize(text): contains the same table that the command-line version of MeCab would output. We find the tokens in the first column of this table. """...
removed intermediate lists Former-commit-id: <I>ea<I>b3cf<I>a<I>bdbc0b<I>a
py
diff --git a/cheroot/server.py b/cheroot/server.py index <HASH>..<HASH> 100644 --- a/cheroot/server.py +++ b/cheroot/server.py @@ -1162,7 +1162,8 @@ class HTTPRequest: # Override the decision to not close the connection if the connection # manager doesn't have space for it. if not self.close_...
server: don't use connections after it's closed
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -33,4 +33,5 @@ setup(name="sortinghat", 'sortinghat.parsing', 'sortinghat.templates', 'sortinghat.data'], package_data={'sortinghat.templates' : ['*.tmpl'], 'sortinghat.data' : ['*'...
Add sqlalchemy and jinja2 as dependencies Closes #<I>
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -23,7 +23,7 @@ Tim Sutton, Jan 2013 import os from datetime import datetime -from fabric.api import fastprint, env, run, hide, sudo, cd, task, get, put +from fabric.api import fastprint, env, run, hide, sudo, cd, t...
[HOTFIX] Set default host for package builder fab task
py
diff --git a/fabfile.py b/fabfile.py index <HASH>..<HASH> 100644 --- a/fabfile.py +++ b/fabfile.py @@ -18,3 +18,7 @@ settings = { main_app = "arm_layout" tested_apps = (main_app, ) + +import django +if django.VERSION >= (1, 6): # use the old test runner for now + settings['TEST_RUNNER'] = 'django.test.simple.Dj...
Fix testing in Django <I> by using the old test runner.
py
diff --git a/pyalacarte/utils.py b/pyalacarte/utils.py index <HASH>..<HASH> 100644 --- a/pyalacarte/utils.py +++ b/pyalacarte/utils.py @@ -2,7 +2,17 @@ import numpy as np -pairwise = lambda a: zip(a[:-1], a[1:]) +from six.moves import range, zip +from itertools import tee + +def nwise(iterable, n=2): + iters = ...
six to reconcile python 2 and 3
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): setup( name='meshcut', - version='0.1', + version='0.2', description='Utilities to slice 3D triangular meshes.', long_description=read('README.rst'), author='Julien Re...
Release <I> with python3 support Closes #<I>
py
diff --git a/d1_client_cli/src/d1_client_cli/access_control.py b/d1_client_cli/src/d1_client_cli/access_control.py index <HASH>..<HASH> 100755 --- a/d1_client_cli/src/d1_client_cli/access_control.py +++ b/d1_client_cli/src/d1_client_cli/access_control.py @@ -54,7 +54,7 @@ class access_control(): def _get_valid_per...
There are only 3 levels of access: read, write, changePermission. (See: <URL>)
py
diff --git a/globus_cli/commands/login.py b/globus_cli/commands/login.py index <HASH>..<HASH> 100644 --- a/globus_cli/commands/login.py +++ b/globus_cli/commands/login.py @@ -15,17 +15,13 @@ from globus_cli.config import ( _LOGIN_EPILOG = ("""\ -SUCCESS -You have logged in to the Globus CLI as {} - -A set of valid...
Text changes to login epilog text On successful login, the text printed now makes no mention of tokens or how authentication works.
py
diff --git a/pycanvas/user.py b/pycanvas/user.py index <HASH>..<HASH> 100644 --- a/pycanvas/user.py +++ b/pycanvas/user.py @@ -203,5 +203,5 @@ class User(CanvasObject): Assignment, self._requester, 'GET', - '/users/%s/courses/%s/assignments' % (self.id, course_id) + ...
Fixed the url for User.get_assignment()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ with open('CHANGELOG.rst') as changelog_file: setup( name='rfc5424-logging-handler', version='1.4.1', - packages=find_packages(), + packages=find_packages(exclude=["test"]), author='Joris Bec...
Exclude test from setup.py
py
diff --git a/toolshed/pool.py b/toolshed/pool.py index <HASH>..<HASH> 100644 --- a/toolshed/pool.py +++ b/toolshed/pool.py @@ -28,7 +28,7 @@ import itertools as it from multiprocessing.pool import IMapIterator def wrapper(func): def wrap(self, timeout=None): - return func(self, timeout=timeout or 1e10) + ...
drop timeout so we don't overflow
py
diff --git a/spyder/utils/tests/test_programs.py b/spyder/utils/tests/test_programs.py index <HASH>..<HASH> 100644 --- a/spyder/utils/tests/test_programs.py +++ b/spyder/utils/tests/test_programs.py @@ -188,6 +188,8 @@ def test_is_module_installed(): assert is_module_installed('qtconsole', '>=4.5') assert not...
Testing: Check that is_module_installed works when for non-installed modules
py
diff --git a/htdocs/api/v1/alert-dbapi.py b/htdocs/api/v1/alert-dbapi.py index <HASH>..<HASH> 100755 --- a/htdocs/api/v1/alert-dbapi.py +++ b/htdocs/api/v1/alert-dbapi.py @@ -21,7 +21,7 @@ import logging import pytz import re -__version__ = '1.9.6' +__version__ = '1.9.7' BROKER_LIST = [('localhost', 61613)] # l...
Can supply short ids when deleting via REST API
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -1663,9 +1663,10 @@ class DisplayWrapper: class ColumnEnum(Column): 'types and aggregators. row.<name> should be kept to the values in the mapping m, and can be set by the a string k...
unset for Column.type is anytype
py
diff --git a/luigi/postgres.py b/luigi/postgres.py index <HASH>..<HASH> 100644 --- a/luigi/postgres.py +++ b/luigi/postgres.py @@ -324,6 +324,7 @@ class CopyToTable(rdbms.CopyToTable): cursor = connection.cursor() self.init_copy(connection) self.copy(cursor, tmp_file) ...
Make to call post_copy in postgres.CopyToTable.copy
py
diff --git a/compiler/grammar.py b/compiler/grammar.py index <HASH>..<HASH> 100644 --- a/compiler/grammar.py +++ b/compiler/grammar.py @@ -156,7 +156,10 @@ identifier = Word(srange("[a-z_]"), alphanums + "_") null_value = Keyword("null") bool_value = Keyword("true") | Keyword("false") bool_value.setParseAction(handl...
parse numbers with regex without combine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,5 +38,4 @@ setup( version=author_info["__version__"], author=author_info["__author__"], license=author_info["__license__"], - download_url="https://github.com/SecurityInnovation/PGPy/archive/{pgpy_ver}.ta...
Removed redundant download link from setup.py
py
diff --git a/pyls/python_ls.py b/pyls/python_ls.py index <HASH>..<HASH> 100644 --- a/pyls/python_ls.py +++ b/pyls/python_ls.py @@ -68,10 +68,12 @@ def start_tcp_lang_server(bind_addr, port, check_parent_process, handler_class): 'SHUTDOWN_CALL': shutdown_server} ) - server = socketserver.TCPServer((b...
Fix TCPServer being bound before allow_reuse_address is set (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ class Tox(TestCommand): setup( name='jsonrpcclient', - version='1.1.5', + version='1.1.6', description='JSON-RPC client library.', long_description=readme + '\n\n' + history, author=...
Bumped version to <I>.
py
diff --git a/bids/layout/tests/test_metadata_index.py b/bids/layout/tests/test_metadata_index.py index <HASH>..<HASH> 100644 --- a/bids/layout/tests/test_metadata_index.py +++ b/bids/layout/tests/test_metadata_index.py @@ -73,8 +73,5 @@ def test_search_with_file_constraints(index, layout): assert len(results) == 4...
Remove test for return_type obj (since it has no become the default)
py
diff --git a/captainhook/checkers/block_branches.py b/captainhook/checkers/block_branches.py index <HASH>..<HASH> 100644 --- a/captainhook/checkers/block_branches.py +++ b/captainhook/checkers/block_branches.py @@ -13,7 +13,7 @@ def run(files, temp_folder, arg=None): parser = get_parser() argos = parser.parse...
Remove decode from block branches check It’s now done by `bash()`.
py
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index <HASH>..<HASH> 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -387,6 +387,10 @@ class ExcelFile(object): self.book = io elif not isinstance(io, xlrd.Book) and hasattr(io, "read"): # N.B. xlrd.Book has a read attri...
ASV: Added seek to buffer to fix xlwt asv failure (#<I>) * Added seek to buffer to fix xlwt asv failure * Added conditional to check for seek on xlrd object
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -180,7 +180,10 @@ def os_data(): if os.path.isfile('/etc/arch-release'): grains['os'] = 'Arch' elif os.path.isfile('/etc/debian_version'): - ...
Detecting Ubuntu Ubuntu does not have an /etc/ubuntu-release file, but shares /etc/debian_version with Debian. Ubuntu is detectable by reading /etc/lsb-release, looking for the string 'Ubuntu'. Not pretty, but it works.
py
diff --git a/tests/task.py b/tests/task.py index <HASH>..<HASH> 100644 --- a/tests/task.py +++ b/tests/task.py @@ -61,6 +61,13 @@ class task_: def returns_Fabric_level_Task_instance(self): assert isinstance(fabric.task(Mock()), fabric.Task) + def does_not_touch_klass_kwarg_if_explicitly_given(self): ...
Sanity test: don't screw over our own subclassers
py
diff --git a/astroid/util.py b/astroid/util.py index <HASH>..<HASH> 100644 --- a/astroid/util.py +++ b/astroid/util.py @@ -30,7 +30,8 @@ def reraise(exception): six.reraise(type(exception), exception, sys.exc_info()[2]) -class _Yes(object): +@object.__new__ +class YES(object): """Special inference object,...
Use the object.__new__ decorator to create a singleton instance of the YES object.
py
diff --git a/test/unit/Network/GenericNetworkTest.py b/test/unit/Network/GenericNetworkTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Network/GenericNetworkTest.py +++ b/test/unit/Network/GenericNetworkTest.py @@ -311,8 +311,9 @@ class GenericNetworkTest: assert 'pore.test2' in net.labels() def tes...
make #<I> PEP8-compliant 3rd attempt
py
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/html/assembler.py +++ b/indra/assemblers/html/assembler.py @@ -126,8 +126,8 @@ def make_source_colors(databases: List[str], readers: List[str], Returns ------- - SourceC...
Update docstring for better docs
py
diff --git a/ibis/client.py b/ibis/client.py index <HASH>..<HASH> 100644 --- a/ibis/client.py +++ b/ibis/client.py @@ -792,7 +792,8 @@ class ImpalaClient(SQLClient): # Compute number of rows in table for better default query planning cardinality = t.count().execute() - set_card = ("alter tabl...
BUG: add special property during cardinality setting. Close #<I>
py
diff --git a/plenum/common/batched.py b/plenum/common/batched.py index <HASH>..<HASH> 100644 --- a/plenum/common/batched.py +++ b/plenum/common/batched.py @@ -1,6 +1,10 @@ +from binascii import hexlify from collections import deque from typing import Any, Iterable, Dict +from plenum.common.util import hexToFriendly...
INDY-<I>: Additional formatting
py