diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/phonopy/api_phonopy.py b/phonopy/api_phonopy.py index <HASH>..<HASH> 100644 --- a/phonopy/api_phonopy.py +++ b/phonopy/api_phonopy.py @@ -487,6 +487,7 @@ class Phonopy(object): if 'first_atoms' in dataset: self._displacement_dataset = dataset elif 'displacements' in dataset: ...
Minor fix to accept type1 dataset at Phonopy.dataset.setter
py
diff --git a/kettle.py b/kettle.py index <HASH>..<HASH> 100755 --- a/kettle.py +++ b/kettle.py @@ -50,14 +50,20 @@ class KettleManager: } } + def player_entity(self, player): + return { + "Type": "Player", + "Player": { + "EntityID": player.manager.id, + "Tags": Kettle._serialize_tags(player.tags), ...
Kettle: Add a CardID to full_entity packets
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,17 @@ from setuptools import find_packages from distutils.core import setup -import django_object_actions as app setup( - name=app.__name__, - version=app.__version__, + name='django-object-actions', +...
Don't pull metadata from the application It imports Django modules that require the settings module, which breaks installation.
py
diff --git a/oidc_auth/authentication.py b/oidc_auth/authentication.py index <HASH>..<HASH> 100644 --- a/oidc_auth/authentication.py +++ b/oidc_auth/authentication.py @@ -170,15 +170,15 @@ class JSONWebTokenAuthentication(BaseOidcAuthentication): return auth[1] + def jwks(self): + return JsonWebK...
Put it on the same spot to not confuse git.
py
diff --git a/hebel/layers/linear_regression_layer.py b/hebel/layers/linear_regression_layer.py index <HASH>..<HASH> 100644 --- a/hebel/layers/linear_regression_layer.py +++ b/hebel/layers/linear_regression_layer.py @@ -189,5 +189,5 @@ class LinearRegressionLayer(SoftmaxLayer): matrix_sum_out_axis((targets ...
Linear regression layer returns loss as GPUArray, not float, to be consistent with SoftmaxLayer
py
diff --git a/dateparser/timezones.py b/dateparser/timezones.py index <HASH>..<HASH> 100644 --- a/dateparser/timezones.py +++ b/dateparser/timezones.py @@ -1,6 +1,7 @@ # Based on http://stackoverflow.com/q/1703546 # As well as http://en.wikipedia.org/wiki/List_of_time_zone_abbreviations # As well as https://github.co...
Added source for the list of utc offsets
py
diff --git a/pydivert/__init__.py b/pydivert/__init__.py index <HASH>..<HASH> 100644 --- a/pydivert/__init__.py +++ b/pydivert/__init__.py @@ -20,7 +20,7 @@ from .packet import Packet from .windivert import WinDivert __author__ = 'fabio' -__version__ = '2.0.0' +__version__ = '2.0.1' if _sys.version_info < (3, 4)...
Bump to version <I> to reinvent the wheel...
py
diff --git a/tests/eventlisten.py b/tests/eventlisten.py index <HASH>..<HASH> 100644 --- a/tests/eventlisten.py +++ b/tests/eventlisten.py @@ -51,8 +51,8 @@ def listen(sock_dir, node): Attach to the pub socket and grab messages ''' event = salt.utils.event.SaltEvent( + node, sock_...
Args got flipped in eventlisten
py
diff --git a/pygccxml/parser/directory_cache.py b/pygccxml/parser/directory_cache.py index <HASH>..<HASH> 100644 --- a/pygccxml/parser/directory_cache.py +++ b/pygccxml/parser/directory_cache.py @@ -379,13 +379,13 @@ class directory_cache_t (declarations_cache.cache_base_t): m = hashlib.sha1() m.updat...
Add more fixes for directory cache and python3
py
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index <HASH>..<HASH> 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -1102,6 +1102,24 @@ class Gitlab(object): return False + def getmergerequestcomments(self, project_id, mergerequest_id): + """ + Get comment...
Mergerequest: add get comments
py
diff --git a/mistletoe/span_token.py b/mistletoe/span_token.py index <HASH>..<HASH> 100644 --- a/mistletoe/span_token.py +++ b/mistletoe/span_token.py @@ -259,7 +259,7 @@ class XWikiBlockMacroStart(SpanToken): We want to keep it on a separate line instead of "soft" merging it with the *following* line. ...
fix(xwiki-renderer): fix regex for macro tokens * check for `\\`, not `~` (`~` will be correctly escaped to `~~` on render) * cleanup: remove unused capturing groups
py
diff --git a/asammdf/blocks/utils.py b/asammdf/blocks/utils.py index <HASH>..<HASH> 100644 --- a/asammdf/blocks/utils.py +++ b/asammdf/blocks/utils.py @@ -989,7 +989,7 @@ def is_file_like(obj: object) -> bool: class UniqueDB(object): - def __init__(self): + def __init__(self) -> None: self._db ...
fix(blocks.utils): wrong type annotations
py
diff --git a/nornir/plugins/inventory/simple.py b/nornir/plugins/inventory/simple.py index <HASH>..<HASH> 100644 --- a/nornir/plugins/inventory/simple.py +++ b/nornir/plugins/inventory/simple.py @@ -28,12 +28,13 @@ class SimpleInventory(Inventory): ) -> None: if hosts is None: yml = ruamel.ya...
Allow simple inventory files to use ~ in paths (#<I>)
py
diff --git a/src/tea/decorators/__init__.py b/src/tea/decorators/__init__.py index <HASH>..<HASH> 100644 --- a/src/tea/decorators/__init__.py +++ b/src/tea/decorators/__init__.py @@ -3,6 +3,9 @@ __date__ = '06 October 2013' __copyright__ = 'Copyright (c) 2013 Viktor Kerkez' +import contextlib + + def docstring(do...
NFT: Ignore exception context manager added
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ setup( ], }, test_suite='green.test', - description = 'Green is a clean, colorful test runner for Python unit tests. Compare it to trial or nose.', + description = 'Green is a clean...
Removed another unnecessary reference to trial and nose.
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -41,7 +41,7 @@ import pronouncing # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.a...
reindent to appease flake8
py
diff --git a/tests/models.py b/tests/models.py index <HASH>..<HASH> 100644 --- a/tests/models.py +++ b/tests/models.py @@ -557,7 +557,7 @@ class TaskInstanceTest(unittest.TestCase): ti.xcom_push(key=key, value=value) self.assertEqual(ti.xcom_pull(task_ids='test_xcom', key=key), value) ti.run(...
[AIRFLOW-<I>] Fix broken unit test This unit tests always fails on the last day of the month, since it tries to access a nonexistent day (like June <I>st).
py
diff --git a/dyndnsc/daemon.py b/dyndnsc/daemon.py index <HASH>..<HASH> 100644 --- a/dyndnsc/daemon.py +++ b/dyndnsc/daemon.py @@ -59,7 +59,7 @@ def daemonize(stdout=os.devnull, stderr=None, stdin=os.devnull, sys.stderr.write("%s%s" % (startmsg, os.linesep) % pid) sys.stderr.flush() if pidfile: - ...
pidfile: w+b expects bytes, but on py3 it got unicode str but as it is a text file, binary mode is wrong anyway, so just use text mode.
py
diff --git a/secedgar/filings/daily.py b/secedgar/filings/daily.py index <HASH>..<HASH> 100644 --- a/secedgar/filings/daily.py +++ b/secedgar/filings/daily.py @@ -193,7 +193,7 @@ class DailyFilings(AbstractFiling): self.get_filings_dict() for filings in self._filings_dict.values(): # take...
FIX: Ensure directory is string for <I> compatability
py
diff --git a/urbansim/urbanchoice/interaction.py b/urbansim/urbanchoice/interaction.py index <HASH>..<HASH> 100644 --- a/urbansim/urbanchoice/interaction.py +++ b/urbansim/urbanchoice/interaction.py @@ -80,13 +80,7 @@ def mnl_interaction_dataset(choosers, alternatives, SAMPLE_SIZE, alts_sample = alternatives.loc...
Use index.values with numpy.repeat The interaction code was calling np.repeat with a Pandas Index, which was causing an error further in. Passing the Index values seems to fix things. There was a try/except block wrapping this call. I took it out because it prevented diagnosing the problem.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setup(name='grs', include_package_data=True, license=grs.__license__, keywords="stock taiwan taipei twse 台灣 股市 台北 即時", - install_requires=[], + install_requires=['python-dateutil']...
Add python-dateutil in setup.
py
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py index <HASH>..<HASH> 100644 --- a/raiden/network/proxies/token_network.py +++ b/raiden/network/proxies/token_network.py @@ -997,8 +997,7 @@ class TokenNetwork: # # Exception is raised if the public k...
bugfix: Exception was not thrown The return values from _update_preconditions are discarded
py
diff --git a/mintapi/api.py b/mintapi/api.py index <HASH>..<HASH> 100644 --- a/mintapi/api.py +++ b/mintapi/api.py @@ -12,7 +12,10 @@ from datetime import date, datetime, timedelta import requests from requests.adapters import HTTPAdapter -from requests.packages.urllib3.poolmanager import PoolManager +try: + ...
Exception urllib3 lib Ubuntu <I>+ and other Debian distros do not have urllib3 in the request library
py
diff --git a/bcloud/App.py b/bcloud/App.py index <HASH>..<HASH> 100644 --- a/bcloud/App.py +++ b/bcloud/App.py @@ -110,6 +110,7 @@ class App: paned.child_set_property(left_box, 'resize', False) nav_window = Gtk.ScrolledWindow() + nav_window.get_style_context().add_class(Gtk.STYLE_CLASS_SIDEBA...
Add SIDEBAR class to nav_window
py
diff --git a/mygeotab/ext/entitylist.py b/mygeotab/ext/entitylist.py index <HASH>..<HASH> 100644 --- a/mygeotab/ext/entitylist.py +++ b/mygeotab/ext/entitylist.py @@ -11,6 +11,17 @@ class API(api.API): """ def get(self, type_name, **parameters): + """Gets entities using the API. Shortcut for using ca...
Added docs for entitylist.API.get()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -38,11 +38,11 @@ required_packages = [ "flask==1.1.1", "gunicorn", "typing", - "retrying==1.3.3", + "retrying>=1.3.3", "gevent", "inotify_simple==1.2.1", - "werkzeug==0.15.5", - "paramiko==...
fix: relax dependencies version requirements. (#<I>)
py
diff --git a/oauthlib/oauth1/rfc5849/__init__.py b/oauthlib/oauth1/rfc5849/__init__.py index <HASH>..<HASH> 100644 --- a/oauthlib/oauth1/rfc5849/__init__.py +++ b/oauthlib/oauth1/rfc5849/__init__.py @@ -177,11 +177,11 @@ class Client(object): # as described in http://oauth.googlecode.com/svn/spec/ext/body_hash...
Python3 fix: encodes request body before hashing In python 3 hashlib works on bytestrings, so we need to encode arguments to most, if not all, hashing functions.
py
diff --git a/pytest/test_std.py b/pytest/test_std.py index <HASH>..<HASH> 100644 --- a/pytest/test_std.py +++ b/pytest/test_std.py @@ -28,7 +28,7 @@ EXPECTED_CODE_INFO = ("""\ # Filename: <disassembly> # Argument count: 0 """ -+ ("# Kw-only arguments: 0" if PYTHON3 else "") + ++ ("# Kw-only arguments: 0\...
fixed failing test_std due to missing newline
py
diff --git a/dispatch/default_settings.py b/dispatch/default_settings.py index <HASH>..<HASH> 100644 --- a/dispatch/default_settings.py +++ b/dispatch/default_settings.py @@ -90,5 +90,4 @@ STATICFILES_DIRS = ( PHONENUMBER_DB_FORMAT = 'NATIONAL' PHONENUMBER_DEFAULT_REGION = 'CA' -NOTIFICATION_KEY = "Mp2OSApC5ZQ11iHt...
move notification key to ubyssey settings
py
diff --git a/tests/test_baseapi.py b/tests/test_baseapi.py index <HASH>..<HASH> 100644 --- a/tests/test_baseapi.py +++ b/tests/test_baseapi.py @@ -105,19 +105,19 @@ class TestBaseAPIURL(object): class TesteAPIQuery(object): - @mock.patch.object(requests, 'get') + @mock.patch.object(requests.Session, 'request...
patch requests.Session.request instead of the global API The global API is implemented in terms of Session, so we don't break anything. This is a preparation for using the session API.
py
diff --git a/openquake/engine/export/hazard.py b/openquake/engine/export/hazard.py index <HASH>..<HASH> 100644 --- a/openquake/engine/export/hazard.py +++ b/openquake/engine/export/hazard.py @@ -203,7 +203,7 @@ def export_hazard_curve_multi(output, target_dir): metadata_set = [] path = None for hc in hcs...
export/hazard: Fixed the retrieval of `hazard_curve_multi` metadata. IML/IMT information wasn't being collected from the correct `Output`. Former-commit-id: <I>d<I>b<I>a<I>a<I>fa<I>aeb4a4a<I>f<I>f1d<I>
py
diff --git a/docx2html/core.py b/docx2html/core.py index <HASH>..<HASH> 100644 --- a/docx2html/core.py +++ b/docx2html/core.py @@ -1266,26 +1266,8 @@ def _strip_tag(tree, tag): """ Remove all tags that have the tag name ``tag`` """ - w_namespace = get_namespace(tree, 'w') - - check_text = True - ...
refs #<I>: removed all the balck list stuff, will re-add later if its needed
py
diff --git a/fsoopify/extras/yaml.py b/fsoopify/extras/yaml.py index <HASH>..<HASH> 100644 --- a/fsoopify/extras/yaml.py +++ b/fsoopify/extras/yaml.py @@ -21,7 +21,7 @@ from ..nodes import FileInfo class YamlSerializer: def load(self, src: FileInfo, kwargs): - return yaml.load(src.read_text(), **kwargs) ...
fixed: use safe yaml load
py
diff --git a/tests/test_systematic.py b/tests/test_systematic.py index <HASH>..<HASH> 100644 --- a/tests/test_systematic.py +++ b/tests/test_systematic.py @@ -71,7 +71,7 @@ def test_op_add(): binary_ufunc_check(op.add) def test_op_sub(): binary_ufunc_check(op.sub) def test_op_mod(): binary_ufunc_check_no_same_args(op...
Use truediv operatator, which is present in both Py<I> and Py3
py
diff --git a/src/toil/test/jobStores/jobStoreTest.py b/src/toil/test/jobStores/jobStoreTest.py index <HASH>..<HASH> 100644 --- a/src/toil/test/jobStores/jobStoreTest.py +++ b/src/toil/test/jobStores/jobStoreTest.py @@ -1253,9 +1253,16 @@ class AWSJobStoreTest(AbstractJobStoreTest.Test): else: ...
Tolerate unnecessary bucket cleanup (#<I>)
py
diff --git a/winpty/tests/test_ptyprocess.py b/winpty/tests/test_ptyprocess.py index <HASH>..<HASH> 100644 --- a/winpty/tests/test_ptyprocess.py +++ b/winpty/tests/test_ptyprocess.py @@ -90,6 +90,7 @@ def test_isalive(pty_fixture): pty.terminate() +@pytest.mark.xfail(reason="It fails sometimes due to long stri...
Mark test_readline as xfail
py
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -3442,7 +3442,7 @@ class FITSHDR: card += vstr if 'comment' in record: - f += ' / %s' % record['comment'] + card += ' / %s' % record...
fix minor typo in adding comments to header cards
py
diff --git a/linkcheck/checker/urlbase.py b/linkcheck/checker/urlbase.py index <HASH>..<HASH> 100644 --- a/linkcheck/checker/urlbase.py +++ b/linkcheck/checker/urlbase.py @@ -508,13 +508,9 @@ class UrlBase (object): Return True iff we can recurse into the url's content. """ log.debug(LOG_CHEC...
Move parseable check down since it might get the content.
py
diff --git a/glue/ligolw/metaio.py b/glue/ligolw/metaio.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/metaio.py +++ b/glue/ligolw/metaio.py @@ -214,7 +214,15 @@ class Column(ligolw.Column): """ if self.getAttribute("Type") in StringTypes: raise TypeError, "Column does not have numeric type" - return numar...
Add work-around for gotcha when building numarray.array objects from zero-length non-list objects.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ setup( 'flake8>=2.5.4', 'hacking>=0.11.0', 'nose>=1.3.4', - 'coverage>=4.0.3', + 'coverage>=4.1b2', 'requests>=2.9.1', 'webs...
upgrade to coverage <I>b2
py
diff --git a/examples/robots.py b/examples/robots.py index <HASH>..<HASH> 100755 --- a/examples/robots.py +++ b/examples/robots.py @@ -54,8 +54,8 @@ class Vector(tuple): other, potentially diagonally.''' return self + Vector(( - (self[0] > other[0]) - (self[0] < other[0]), - (s...
fixed bug in example just introduced by swapping arguments
py
diff --git a/salt/modules/riak.py b/salt/modules/riak.py index <HASH>..<HASH> 100644 --- a/salt/modules/riak.py +++ b/salt/modules/riak.py @@ -84,4 +84,28 @@ def member_status(): salt '*' riak.member_status ''' - return __salt__['cmd.run']('riak-admin member-status') + ret = {'membership': {}, + ...
Return proper data structure from member_status
py
diff --git a/deimos/containerizer.py b/deimos/containerizer.py index <HASH>..<HASH> 100644 --- a/deimos/containerizer.py +++ b/deimos/containerizer.py @@ -115,10 +115,10 @@ class Docker(Containerizer, _Struct): # start an executor. observer_argv = None if needs_executor_wrapper(task): - ...
More flexible specification of "observer" executor.
py
diff --git a/tests/unit/test_pillar.py b/tests/unit/test_pillar.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_pillar.py +++ b/tests/unit/test_pillar.py @@ -439,8 +439,8 @@ class PillarTestCase(TestCase): 'renderer_blacklist': [], 'renderer_whitelist': [], 'state_top': '', -...
mocked file_roots and pillar_roots should be dicts
py
diff --git a/docs/examples/rt-stuck-trackers.py b/docs/examples/rt-stuck-trackers.py index <HASH>..<HASH> 100755 --- a/docs/examples/rt-stuck-trackers.py +++ b/docs/examples/rt-stuck-trackers.py @@ -60,6 +60,7 @@ class StuckTrackers(base.ScriptBaseWithConfig): if self.options.stuck_only: ...
rt-stuck-trackers: fix for --to-tagged
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,6 +1,6 @@ import subprocess import os -from nose.tools import eq_ +from nose.tools import eq_, assert_raises # Get the filename of 'halibote.txt', which contains some mojibake abou...
Use assert_raises in test_cli
py
diff --git a/assertpy/assertpy.py b/assertpy/assertpy.py index <HASH>..<HASH> 100644 --- a/assertpy/assertpy.py +++ b/assertpy/assertpy.py @@ -485,10 +485,9 @@ class AssertionBuilder(object): elif isinstance(self.val, collections.Iterable): if len(self.val) == 0: raise ValueError(...
use next() built-in to get first item of iterable
py
diff --git a/elasticsearch/compat.py b/elasticsearch/compat.py index <HASH>..<HASH> 100644 --- a/elasticsearch/compat.py +++ b/elasticsearch/compat.py @@ -33,7 +33,7 @@ else: from queue import Queue try: - from collections.abs import Mapping + from collections.abc import Mapping except ImportError: ...
Fix typo (collections.abs -> collections.abc) to restore Python <I> support
py
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/plot.py +++ b/holoviews/plotting/plot.py @@ -943,7 +943,7 @@ class GenericCompositePlot(DimensionedPlot): if not isinstance(key, tuple): key = (key,) nthkey_fn = lambda x: zip(tupl...
Fixed GenericCompositePlot.get_frame for DynamicMaps with streams
py
diff --git a/python_modules/dagster-celery/dagster_celery/version.py b/python_modules/dagster-celery/dagster_celery/version.py index <HASH>..<HASH> 100644 --- a/python_modules/dagster-celery/dagster_celery/version.py +++ b/python_modules/dagster-celery/dagster_celery/version.py @@ -1,3 +1,3 @@ -__version__ = '0.6.5' +_...
Bring versions into lockstep Summary: Blocking nightlies. Test Plan: Nightly Reviewers: nate Reviewed By: nate Differential Revision: <URL>
py
diff --git a/fusionbox/middleware.py b/fusionbox/middleware.py index <HASH>..<HASH> 100644 --- a/fusionbox/middleware.py +++ b/fusionbox/middleware.py @@ -34,7 +34,10 @@ class GenericTemplateFinderMiddleware(object): """ def process_response(self, request, response): if response.status_code == 404: -...
Don't trash original response in GenericTemplateFinderMiddleware When GenericTemplateFinderMiddleware catches a <I> but can not find a suitable template, it should return the original response, not its Http<I> exception.
py
diff --git a/src/ossos-pipeline/setup.py b/src/ossos-pipeline/setup.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/setup.py +++ b/src/ossos-pipeline/setup.py @@ -17,7 +17,7 @@ for script in os.listdir(script_dir): scripts.append(os.path.join(script_dir,script)) scripts.append('validate.py') -version = ...
Bumped the version number, new flow and new CR-reject code
py
diff --git a/examples/py/kucoin-fetch-closed-orders-pagination.py b/examples/py/kucoin-fetch-closed-orders-pagination.py index <HASH>..<HASH> 100644 --- a/examples/py/kucoin-fetch-closed-orders-pagination.py +++ b/examples/py/kucoin-fetch-closed-orders-pagination.py @@ -23,11 +23,11 @@ limit = 20 while since < now: ...
Update kucoin fetch closed orders example As mentioned [here](<URL>) the example needs to be update to use `min` instead of max for the end date, since if the difference between `startAt` and `endAt` is greater than 1 week the kucoin server responds with an error.
py
diff --git a/tests/integration_server.py b/tests/integration_server.py index <HASH>..<HASH> 100644 --- a/tests/integration_server.py +++ b/tests/integration_server.py @@ -67,8 +67,10 @@ class BaseIntegrationServer(object): continue match = self.protocol_re.match(line) - protoc...
Show unexpected lines from nsq servers.
py
diff --git a/html5lib/tests/test_tokenizer.py b/html5lib/tests/test_tokenizer.py index <HASH>..<HASH> 100644 --- a/html5lib/tests/test_tokenizer.py +++ b/html5lib/tests/test_tokenizer.py @@ -144,10 +144,6 @@ def unescape(test): def runTokenizerTest(test): warnings.resetwarnings() warnings.simplefilter("error...
Fix tokenizer test harness to not decode tests multiple times. Given a double escaped test, if it had multiple initial states, the same test object would be decoded multiple times: this led to bogus results on every run except the first.
py
diff --git a/nolds/__init__.py b/nolds/__init__.py index <HASH>..<HASH> 100644 --- a/nolds/__init__.py +++ b/nolds/__init__.py @@ -1 +1 @@ -from measures import lyap_r, layp_e, sampen, hurs_rs, corr_dim, dfa, fbm, binary_n, logarithmic_n, logarithmic_r +from nolds.measures import lyap_r, lyap_e, sampen, hurst_rs, corr_...
bugfix: we need to use nolds.measures instead of just measures when importing in package structure (+ some typos)
py
diff --git a/auth0/v2/device_credentials.py b/auth0/v2/device_credentials.py index <HASH>..<HASH> 100644 --- a/auth0/v2/device_credentials.py +++ b/auth0/v2/device_credentials.py @@ -18,3 +18,9 @@ class DeviceCredentials(object): 'type': type, } return self.client.get(params=params) + + ...
Implement create and delete methods for DeviceCredentials
py
diff --git a/commands.py b/commands.py index <HASH>..<HASH> 100755 --- a/commands.py +++ b/commands.py @@ -41,7 +41,12 @@ def virtualenv(where='.venv', python='python', overwrite=False): def install(where='.venv', python='python', upgrade=False, overwrite=False): virtualenv(where=where, python=python, overwrite=o...
Upgrade pip & setuptools when running install with --upgrade In addition, use the `--upgrade-strategy eager` option.
py
diff --git a/sos/plugins/memory.py b/sos/plugins/memory.py index <HASH>..<HASH> 100644 --- a/sos/plugins/memory.py +++ b/sos/plugins/memory.py @@ -27,9 +27,6 @@ class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/proc/vmstat", "/proc/slabinfo", "/proc/pagetypeinfo"])...
Remove dmesg|grep use from memory plugin This is redundant since the whole boottime dmesg (and current dmesg buffer) are captured elsewhere. Also removes shell syntax from the plugin. Related: Issue #<I>.
py
diff --git a/pdb.py b/pdb.py index <HASH>..<HASH> 100644 --- a/pdb.py +++ b/pdb.py @@ -1334,13 +1334,16 @@ except for when using the function decorator. filename = os.path.abspath(frame.f_code.co_filename) return filename, lineno - def _format_editcmd(self, editor, filename, lineno): + def _qu...
Factor out _quote_filename, fix preferred import (#<I>)
py
diff --git a/salt/states/pkg.py b/salt/states/pkg.py index <HASH>..<HASH> 100644 --- a/salt/states/pkg.py +++ b/salt/states/pkg.py @@ -666,7 +666,7 @@ def installed( hold_ret = __salt__['pkg.unhold']( name=name, pkgs=pkgs, sources=sources ) ...
Add CommandExecutionError to exception handling aptpkg's set_selections (called by hold/unhold) could potentially raise this exception, so catch it as well.
py
diff --git a/greg/aux_functions.py b/greg/aux_functions.py index <HASH>..<HASH> 100755 --- a/greg/aux_functions.py +++ b/greg/aux_functions.py @@ -208,18 +208,6 @@ def get_date(line): return date -def transition(args, feed, feeds): - # A function to ease the transition to individual feed files - if "down...
Deleting the prehistoric transition function
py
diff --git a/datascience/tables.py b/datascience/tables.py index <HASH>..<HASH> 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -774,7 +774,7 @@ class Table(collections.abc.MutableMapping): names = [op.__name__ for op in ops] ops = [_zero_on_type_error(op) for op in ops] col...
fix deprecation creation of table in stats
py
diff --git a/rest_framework_simplejwt/token_blacklist/models.py b/rest_framework_simplejwt/token_blacklist/models.py index <HASH>..<HASH> 100644 --- a/rest_framework_simplejwt/token_blacklist/models.py +++ b/rest_framework_simplejwt/token_blacklist/models.py @@ -1,14 +1,11 @@ -from django.contrib.auth import get_user_m...
Fix broken tests in <I>-<I>
py
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index <HASH>..<HASH> 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -170,6 +170,8 @@ class TestEasyInstallTest: sdist_zip.close() return str(sdist) + @pyte...
Mark test as xfail. Ref #<I>.
py
diff --git a/salt/states/pyrax_queues.py b/salt/states/pyrax_queues.py index <HASH>..<HASH> 100644 --- a/salt/states/pyrax_queues.py +++ b/salt/states/pyrax_queues.py @@ -41,7 +41,6 @@ def present(name, provider): provider Salt Cloud Provider - ''' ret = {'name': name, 'result': True, ...
missed one pylint
py
diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py index <HASH>..<HASH> 100644 --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -1239,7 +1239,7 @@ class Data: ai = Ai(axi.points) Mi = mi(ai) # apply Mi to channel - self....
M-factor fix data.m now normalizes the correct channel. resolves #<I>
py
diff --git a/tests/unit/modules/ddns_test.py b/tests/unit/modules/ddns_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/ddns_test.py +++ b/tests/unit/modules/ddns_test.py @@ -29,6 +29,9 @@ ddns.__grains__ = {} ddns.__salt__ = {} +@skipif(True, 'mocking dnspython without depending on it being installed'...
fix ddns tests These tests will only work if dnspython is installed. Mocking away dnspython is a great amount of work, so we'll just disable these tests for now.
py
diff --git a/lib/meta/list.py b/lib/meta/list.py index <HASH>..<HASH> 100644 --- a/lib/meta/list.py +++ b/lib/meta/list.py @@ -417,7 +417,13 @@ class List(memory_region.MemoryRegion): bitlist = list() for i in xrange(len(self.declarations)): - instance = self.instantiate(i) + d...
read_memory culls from instance_map
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ from pathlib import Path from setuptools import setup, find_packages ##################################### -VERSION = "0.7.3" +VERSION = "0.7.4" ISRELEASED = True if ISRELEASED: __version__ = VERSION
Bump to version <I>
py
diff --git a/vent/api/tools.py b/vent/api/tools.py index <HASH>..<HASH> 100644 --- a/vent/api/tools.py +++ b/vent/api/tools.py @@ -312,12 +312,6 @@ class Tools: # check and update links, volumes_from for container in list(tool_d.keys()): - for section in s: - ...
move syslog back to host
py
diff --git a/representatives/templatetags/representatives_tags.py b/representatives/templatetags/representatives_tags.py index <HASH>..<HASH> 100644 --- a/representatives/templatetags/representatives_tags.py +++ b/representatives/templatetags/representatives_tags.py @@ -24,7 +24,7 @@ def chamber_icon(chamber): @regi...
Mandate with no end date = present
py
diff --git a/ceph_deploy/cli.py b/ceph_deploy/cli.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/cli.py +++ b/ceph_deploy/cli.py @@ -149,7 +149,7 @@ def _main(args=None, namespace=None): # File Logger fh = logging.FileHandler('{cluster}.log'.format(cluster=args.cluster)) fh.setLevel(logging.DEBUG) - ...
[RM-<I>] Use different log format for file logger
py
diff --git a/mtools/util/logfile.py b/mtools/util/logfile.py index <HASH>..<HASH> 100644 --- a/mtools/util/logfile.py +++ b/mtools/util/logfile.py @@ -310,7 +310,7 @@ class LogFile(InputSource): def _check_for_restart(self, logevent): - if logevent.thread == 'mongosMain': + if logevent.thread == ...
made version detection more stable, including enterprise builds (with ssl). Closes #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ try: except ImportError: from distutils.core import setup -__version__ = "1.2.2" +__version__ = "1.3.0" setup( name='django-tenants',
Update version number ready for pypi
py
diff --git a/salt/states/supervisord.py b/salt/states/supervisord.py index <HASH>..<HASH> 100644 --- a/salt/states/supervisord.py +++ b/salt/states/supervisord.py @@ -17,7 +17,7 @@ from __future__ import absolute_import # Import python libs import logging -import six +import salt.utils.six as six log = logging...
Replaced import six in file /salt/states/supervisord.py
py
diff --git a/autoflake.py b/autoflake.py index <HASH>..<HASH> 100644 --- a/autoflake.py +++ b/autoflake.py @@ -6,7 +6,7 @@ import io import os -__version__ = '0.1' +__version__ = '0.1.1' PYFLAKES_BIN = 'pyflakes'
Increment patch version to <I>
py
diff --git a/salt/netapi/rest_cherrypy/app.py b/salt/netapi/rest_cherrypy/app.py index <HASH>..<HASH> 100644 --- a/salt/netapi/rest_cherrypy/app.py +++ b/salt/netapi/rest_cherrypy/app.py @@ -1432,19 +1432,18 @@ class Login(LowDataAdapter): try: eauth = self.opts.get('external_auth', {}).get(token[...
Return all relevant perms on login If the requesting user was in a group specified in the eauth config, then the return would only have the permissions allowed by their group memberships, even if there were specific permissions for that user or permissions for '*'. A user without any group permissions, but with user-...
py
diff --git a/src/scs_core/aws/config/project.py b/src/scs_core/aws/config/project.py index <HASH>..<HASH> 100644 --- a/src/scs_core/aws/config/project.py +++ b/src/scs_core/aws/config/project.py @@ -21,7 +21,7 @@ class Project(PersistentJSONable): # ---------------------------------------------------------------...
Added text standardisation to aws_project.py
py
diff --git a/tableone.py b/tableone.py index <HASH>..<HASH> 100644 --- a/tableone.py +++ b/tableone.py @@ -212,8 +212,9 @@ class TableOne(object): grouped_data.append(data[v][data[self.strata_col]==s][data[v][data[self.strata_col]==s].notnull()].values) # minimum n across groups ...
don't compute pval if false. fixes #4
py
diff --git a/llvmlite/tests/test_refprune.py b/llvmlite/tests/test_refprune.py index <HASH>..<HASH> 100644 --- a/llvmlite/tests/test_refprune.py +++ b/llvmlite/tests/test_refprune.py @@ -206,6 +206,8 @@ define void @main(i8* %ptr) { def test_per_bb_2(self): mod, stats = self.check(self.per_bb_ir_2) ...
Add check in test as requested from code review
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -607,7 +607,8 @@ class HazardCalculator(BaseCalculator): logging.info('Extracted %d/%d assets', ...
Small fix [skip CI]
py
diff --git a/qiniustorage/backends.py b/qiniustorage/backends.py index <HASH>..<HASH> 100644 --- a/qiniustorage/backends.py +++ b/qiniustorage/backends.py @@ -91,7 +91,8 @@ class QiniuStorage(Storage): return name def _put_file(self, name, content): - ret, err = qiniu.io.put(self.put_policy.token...
Generate the put in a separeted line. Could be helpful for debugging.
py
diff --git a/tornado/template.py b/tornado/template.py index <HASH>..<HASH> 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -367,10 +367,9 @@ class Loader(BaseLoader): def _create_template(self, name): path = os.path.join(self.root, name) - f = open(path, "rb") - template = T...
update Template Loader with 'with' statment
py
diff --git a/great_expectations/render/renderer/content_block/bullet_list_content_block.py b/great_expectations/render/renderer/content_block/bullet_list_content_block.py index <HASH>..<HASH> 100644 --- a/great_expectations/render/renderer/content_block/bullet_list_content_block.py +++ b/great_expectations/render/rende...
Fix styling present in every bullet list element
py
diff --git a/src/pyipmi/event.py b/src/pyipmi/event.py index <HASH>..<HASH> 100644 --- a/src/pyipmi/event.py +++ b/src/pyipmi/event.py @@ -4,9 +4,5 @@ # author: Heiko Thiery <heiko.thiery@kontron.com> # author: Michael Walle <michael.walle@kontron.com> # - -class Event: - DIR_ASSERTION = 0 - DIR_DEASSERTION = ...
event: changed ASSERTION, DEASSERTION constants
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -43,12 +43,12 @@ class PyTest(Command): requires = ["pymongo"] setup(name="minimongo", - version="0.2.6", + version="0.2.8b1", packages=find_packages(), cmdclass={"test": PyTest}, platforms=[...
Update setup.py Updated version and pymongo required version
py
diff --git a/paystackapi/tests/test_invoice.py b/paystackapi/tests/test_invoice.py index <HASH>..<HASH> 100644 --- a/paystackapi/tests/test_invoice.py +++ b/paystackapi/tests/test_invoice.py @@ -121,3 +121,20 @@ class TestInvoice(BaseTestCase): id_or_code="PRQ_kp4lleqc7g8xckk", ) self.ass...
Add test case for finalize_draft invoice
py
diff --git a/tests/test_api.py b/tests/test_api.py index <HASH>..<HASH> 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -350,3 +350,21 @@ def test_formats(): assert '<' in str(data.xml) assert '<title>' in str(data.html) assert '\n' in str(data.as_list()) + + +@vcr.use_cassette +def...
Add tests for new phisheye API endpoints
py
diff --git a/bedup/__main__.py b/bedup/__main__.py index <HASH>..<HASH> 100644 --- a/bedup/__main__.py +++ b/bedup/__main__.py @@ -113,6 +113,7 @@ def vol_cmd(args): sys.stderr.write( "The dedup-vol command is deprecated, please use dedup.\n") args.command = 'dedup' + args.defrag =...
Fix the dedup-vol compat alias, which broke when --defrag was introduced.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ import subprocess import sys import sysconfig from contextlib import contextmanager -from setuptools import Extension, setup +from setuptools import setup from cy_build import CyExtension as Extension, cy_bu...
Removal of unused import Import is overwritten in the next line with cy_build
py
diff --git a/cisco_aci/datadog_checks/cisco_aci/tenant.py b/cisco_aci/datadog_checks/cisco_aci/tenant.py index <HASH>..<HASH> 100644 --- a/cisco_aci/datadog_checks/cisco_aci/tenant.py +++ b/cisco_aci/datadog_checks/cisco_aci/tenant.py @@ -99,10 +99,12 @@ class Tenant: name = list(s.keys())[0] ...
Add debug lines for support (#<I>) * Add debug lines for support * Add debug lines for support * Update cisco_aci/datadog_checks/cisco_aci/tenant.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,8 @@ -import os from setuptools import setup setup( name='turrentine', version = '0.0.1', description = 'A very simple CMS for Django', - long_description = open(os.path.join(os.path.dirname(__file__)...
Remove setup.py long_description trickery.
py
diff --git a/neopixel.py b/neopixel.py index <HASH>..<HASH> 100644 --- a/neopixel.py +++ b/neopixel.py @@ -93,6 +93,18 @@ class NeoPixel(_pixelbuf.PixelBuf): with neopixel.NeoPixel(NEOPIXEL, 10) as pixels: pixels[::2] = [RED] * (len(pixels) // 2) time.sleep(2) + + .. py:method:: Ne...
add docs for methods on parent class
py
diff --git a/ftfy/fixes.py b/ftfy/fixes.py index <HASH>..<HASH> 100644 --- a/ftfy/fixes.py +++ b/ftfy/fixes.py @@ -636,10 +636,10 @@ def decode_escapes(text): # Other instances in Portuguese, such as "àfrica", seem to be typos (intended # to be "África" with the accent in the other direction). # -# Unfortunately, Ca...
clarify the problem with à in the middle of a word
py
diff --git a/salt/modules/win_file.py b/salt/modules/win_file.py index <HASH>..<HASH> 100644 --- a/salt/modules/win_file.py +++ b/salt/modules/win_file.py @@ -818,8 +818,10 @@ def stats(path, hash_type='sha256', follow_symlinks=True): salt '*' file.stats /etc/passwd ''' + # This is to mirror the beha...
Return empty or unmodified dict on file not found Fixes issue with file.managed with test=True when the directory structure for the file is not there and makedirs=True
py
diff --git a/tests/unit/modules/blockdev_test.py b/tests/unit/modules/blockdev_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/blockdev_test.py +++ b/tests/unit/modules/blockdev_test.py @@ -57,16 +57,6 @@ class TestBlockdevModule(TestCase): with patch.dict(blockdev.__salt__, {'cmd.run': mock}): ...
Remove test failing because of mocks -- it's deprecated anyway
py
diff --git a/furious/context.py b/furious/context.py index <HASH>..<HASH> 100644 --- a/furious/context.py +++ b/furious/context.py @@ -57,6 +57,18 @@ def new(): return new_context +def init_context_with_async(async): + """Instantiate a new JobContext and store a reference to it in the global + async cont...
Add setup and helper to initialize the eniviron with a job context.
py
diff --git a/tests/test_proxies.py b/tests/test_proxies.py index <HASH>..<HASH> 100644 --- a/tests/test_proxies.py +++ b/tests/test_proxies.py @@ -379,15 +379,33 @@ def test_this_deny_non_integers(): assert str(exc_info.value) == 'Positive integer argument is required' -def test_this_deny_negative_integers(): ...
Test this left shift against zero and negative integers.
py
diff --git a/docx2html/tests/test_xml.py b/docx2html/tests/test_xml.py index <HASH>..<HASH> 100644 --- a/docx2html/tests/test_xml.py +++ b/docx2html/tests/test_xml.py @@ -42,7 +42,7 @@ def _create_p_tag(text, bold=False): t_tag = _create_t_tag(text) return DOCUMENT_P_TEMPLATE % { 'text': t_tag, - ...
refs #5: used named kwargs
py